pub enum AsyncWriterRecovery {
Opened(Box<AsyncFileWriter>),
Rejected(RejectedAsyncWriter),
}Expand description
A retained session that is either validated or restricted to explicit cleanup.
Matching the variant is required before performing recovery. A rejected session cannot write or publish data. This value does not describe the historical publication state; use the failure snapshot for that fact.
§Examples
use qubit_fs::write::AsyncWriterRecovery;
fn observe(_recovery: AsyncWriterRecovery) {}Variants§
Opened(Box<AsyncFileWriter>)
A validated writer retained for explicit recovery.
Rejected(RejectedAsyncWriter)
A provider session whose returned identity failed validation.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for AsyncWriterRecovery
impl !Sync for AsyncWriterRecovery
impl !UnwindSafe for AsyncWriterRecovery
impl Freeze for AsyncWriterRecovery
impl Send for AsyncWriterRecovery
impl Unpin for AsyncWriterRecovery
impl UnsafeUnpin for AsyncWriterRecovery
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