pub struct EntityReporter<E, T: Borrow<dyn Reporter + Send + Sync + 'static>> { /* private fields */ }
Implementations§
Source§impl<E, T: Borrow<dyn Reporter + Send + Sync + 'static>> EntityReporter<E, T>
impl<E, T: Borrow<dyn Reporter + Send + Sync + 'static>> EntityReporter<E, T>
Sourcepub fn new_artifact(
&self,
artifact_type: &ArtifactType,
) -> Result<Box<dyn Write + Send + Sync + 'static>, Error>
pub fn new_artifact( &self, artifact_type: &ArtifactType, ) -> Result<Box<dyn Write + Send + Sync + 'static>, Error>
Create a new artifact scoped to the suite.
Sourcepub fn new_directory_artifact(
&self,
artifact_type: &DirectoryArtifactType,
component_moniker: Option<String>,
) -> Result<Box<dyn DirectoryWrite + Send + Sync + 'static>, Error>
pub fn new_directory_artifact( &self, artifact_type: &DirectoryArtifactType, component_moniker: Option<String>, ) -> Result<Box<dyn DirectoryWrite + Send + Sync + 'static>, Error>
Create a new directory artifact scoped to the suite.
Sourcepub fn started(&self, timestamp: Timestamp) -> Result<(), Error>
pub fn started(&self, timestamp: Timestamp) -> Result<(), Error>
Record that the suite has started.
Source§impl EntityReporter<(), Box<dyn Reporter + Sync + Send>>
impl EntityReporter<(), Box<dyn Reporter + Sync + Send>>
Sourcepub fn new_ansi_filtered<R: 'static + Reporter + Send + Sync>(
reporter: R,
) -> Self
pub fn new_ansi_filtered<R: 'static + Reporter + Send + Sync>( reporter: R, ) -> Self
Create a RunReporter
, where stdout, stderr, syslog, and restricted log artifact types
are sanitized for ANSI escape sequences before being passed along to |reporter|.
Sourcepub fn set_expected_suites(&self, expected_suites: u32)
pub fn set_expected_suites(&self, expected_suites: u32)
Set the number of expected suites for the run.
Auto Trait Implementations§
impl<E, T> Freeze for EntityReporter<E, T>where
T: Freeze,
impl<E, T> RefUnwindSafe for EntityReporter<E, T>where
T: RefUnwindSafe,
E: RefUnwindSafe,
impl<E, T> Send for EntityReporter<E, T>
impl<E, T> Sync for EntityReporter<E, T>
impl<E, T> Unpin for EntityReporter<E, T>
impl<E, T> UnwindSafe for EntityReporter<E, T>where
T: UnwindSafe,
E: UnwindSafe,
Blanket Implementations§
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, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
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