Struct wasmer_argus::argus::Argus
source · pub struct Argus {
pub config: ArgusConfig,
pub client: WasmerClient,
}
Fields§
§config: ArgusConfig
§client: WasmerClient
Implementations§
source§impl Argus
impl Argus
sourcepub async fn fetch_packages(
&self,
s: UnboundedSender<PackageVersionWithPackage>,
p: ProgressBar,
config: Arc<ArgusConfig>,
successes_rx: UnboundedReceiver<()>,
failures_rx: UnboundedReceiver<()>,
) -> Result<()>
pub async fn fetch_packages( &self, s: UnboundedSender<PackageVersionWithPackage>, p: ProgressBar, config: Arc<ArgusConfig>, successes_rx: UnboundedReceiver<()>, failures_rx: UnboundedReceiver<()>, ) -> Result<()>
Fetch all packages from the registry
pub(crate) async fn download_webcs<'a>( test_id: u64, path: &'a PathBuf, webc_v2_url: &'a Url, webc_v3_url: &'a Url, p: &'a ProgressBar, ) -> Result<()>
async fn download_package<'a>( test_id: u64, path: &'a PathBuf, url: &'a Url, p: &'a ProgressBar, ) -> Result<()>
sourcepub async fn get_path(
config: Arc<ArgusConfig>,
pkg: &PackageVersionWithPackage,
) -> PathBuf
pub async fn get_path( config: Arc<ArgusConfig>, pkg: &PackageVersionWithPackage, ) -> PathBuf
Return the complete path to the folder of the test for the package, from the outdir to the hash
pub fn get_package_id(pkg: &PackageVersionWithPackage) -> String
source§impl Argus
impl Argus
sourcepub async fn run(self) -> Result<()>
pub async fn run(self) -> Result<()>
Start the testsuite using the configuration in Self::config
sourceasync fn test(
test_id: u64,
config: Arc<ArgusConfig>,
package: &PackageVersionWithPackage,
p: ProgressBar,
successes_sx: UnboundedSender<()>,
failures_sx: UnboundedSender<()>,
) -> Result<bool>
async fn test( test_id: u64, config: Arc<ArgusConfig>, package: &PackageVersionWithPackage, p: ProgressBar, successes_sx: UnboundedSender<()>, failures_sx: UnboundedSender<()>, ) -> Result<bool>
Perform the test for a single package
sourceasync fn to_test(&self, pkg: &PackageVersionWithPackage) -> bool
async fn to_test(&self, pkg: &PackageVersionWithPackage) -> bool
Checks whether or not the package should be tested
async fn write_report(path: &Path, result: TestReport) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Argus
impl !RefUnwindSafe for Argus
impl Send for Argus
impl Sync for Argus
impl Unpin for Argus
impl !UnwindSafe for Argus
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.