pub struct DetectionRecord { /* private fields */ }Expand description
One detection run’s record, as committed.
Implementations§
Source§impl DetectionRecord
impl DetectionRecord
Sourcepub async fn start(
database: &StoreDatabase,
location: &StorageConfig,
run: Uuid,
) -> Result<Self, SyncError>
pub async fn start( database: &StoreDatabase, location: &StorageConfig, run: Uuid, ) -> Result<Self, SyncError>
Record run at location before its first probe.
Sourcepub async fn at(
database: &StoreDatabase,
location: &StorageConfig,
) -> Result<Vec<Self>, SyncError>
pub async fn at( database: &StoreDatabase, location: &StorageConfig, ) -> Result<Vec<Self>, SyncError>
The recorded runs whose probes sit in location’s bucket: the same
bucket at the same endpoint and region, whatever profile reached them.
Sourcepub async fn end(&self, database: &StoreDatabase) -> Result<(), SyncError>
pub async fn end(&self, database: &StoreDatabase) -> Result<(), SyncError>
End the record, once a cleanup has confirmed the run’s probes and uploads gone.
Sourcepub fn carried(records: &[OperationRecord]) -> Vec<NewOperation>
pub fn carried(records: &[OperationRecord]) -> Vec<NewOperation>
The detection runs a replaced installation’s journal still owes cleanup for, as new rows for its replacement’s journal (§19.3).
Auto Trait Implementations§
impl Freeze for DetectionRecord
impl RefUnwindSafe for DetectionRecord
impl Send for DetectionRecord
impl Sync for DetectionRecord
impl Unpin for DetectionRecord
impl UnsafeUnpin for DetectionRecord
impl UnwindSafe for DetectionRecord
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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.