pub struct S3DetectionRun {
pub detection: Result<S3Detection, StorageError>,
pub cleaned: Vec<Uuid>,
}Expand description
What one detection did (§20.7).
Fields§
§detection: Result<S3Detection, StorageError>What it observed, or why it failed; a failed cleanup fails it.
cleaned: Vec<Uuid>The runs whose probes and uploads it confirmed gone: its own when it wrote nothing or its cleanup succeeded, and each earlier run whose leftovers it removed.
Implementations§
Source§impl S3DetectionRun
impl S3DetectionRun
Sourcepub fn unwritten(
runs: &S3DetectionRuns,
detection: Result<S3Detection, StorageError>,
) -> Self
pub fn unwritten( runs: &S3DetectionRuns, detection: Result<S3Detection, StorageError>, ) -> Self
A detection that wrote nothing: its own run left nothing, and it removed no earlier run’s leftovers.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for S3DetectionRun
impl !RefUnwindSafe for S3DetectionRun
impl Send for S3DetectionRun
impl Sync for S3DetectionRun
impl Unpin for S3DetectionRun
impl UnsafeUnpin for S3DetectionRun
impl !UnwindSafe for S3DetectionRun
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
§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 moreCreates a shared type from an unshared type.