pub enum WriterState {
Open,
Committed,
NotPublished,
Published,
Aborted,
Indeterminate,
}Expand description
Observable lifecycle state of a synchronous or asynchronous file writer.
§Examples
use qubit_fs::write::WriterState;
assert!(matches!(WriterState::Open, WriterState::Open));Variants§
Open
The session accepts bytes and may be committed or aborted.
Committed
Publication completed successfully.
NotPublished
Publication definitely did not occur and only cleanup remains possible.
Published
Publication occurred, but provider cleanup remains possible.
Aborted
The session was explicitly cancelled and cleaned up.
Indeterminate
Publication or lifecycle cleanup may have occurred, but the provider cannot confirm the final state.
Trait Implementations§
Source§impl Clone for WriterState
impl Clone for WriterState
impl Copy for WriterState
Source§impl Debug for WriterState
impl Debug for WriterState
impl Eq for WriterState
Source§impl PartialEq for WriterState
impl PartialEq for WriterState
impl StructuralPartialEq for WriterState
Auto Trait Implementations§
impl Freeze for WriterState
impl RefUnwindSafe for WriterState
impl Send for WriterState
impl Sync for WriterState
impl Unpin for WriterState
impl UnsafeUnpin for WriterState
impl UnwindSafe for WriterState
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