#[non_exhaustive]pub enum WriteMode {
Plain,
Durable,
}Expand description
How a submitter write is made durable (D-099).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Plain
The completion carries the ticket; make it durable with a barrier.
Durable
The completion is handed back only once the write is durable, with a receipt (a prefix receipt for an append whose region was complete up to it, else one for its own range): at once on a power-safe store (the write itself was durable) unless its region forces data sync, else after a covering flush.
Trait Implementations§
impl Copy for WriteMode
impl Eq for WriteMode
impl StructuralPartialEq for WriteMode
Auto Trait Implementations§
impl Forget for WriteMode
impl Freeze for WriteMode
impl Move for WriteMode
impl RefUnwindSafe for WriteMode
impl Send for WriteMode
impl Sync for WriteMode
impl Unpin for WriteMode
impl UnsafeUnpin for WriteMode
impl UnwindSafe for WriteMode
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