pub enum WriterRecovery {
Opened(Box<FileWriter>),
Rejected(RejectedWriter),
}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::WriterRecovery;
fn observe(_recovery: WriterRecovery) {}Variants§
Opened(Box<FileWriter>)
A validated writer retained for explicit recovery.
Rejected(RejectedWriter)
A provider session whose returned identity failed validation.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for WriterRecovery
impl !Sync for WriterRecovery
impl !UnwindSafe for WriterRecovery
impl Freeze for WriterRecovery
impl Send for WriterRecovery
impl Unpin for WriterRecovery
impl UnsafeUnpin for WriterRecovery
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