pub enum Flush {
Sync,
Async,
}
Expand description
Desired behavior when flushing write changes.
Variants§
Sync
Request dirty pages to be written immediately and block until completed.
Async
Request dirty pages to be written but do not wait for completion.
Trait Implementations§
source§impl Ord for Flush
impl Ord for Flush
source§impl PartialEq for Flush
impl PartialEq for Flush
source§impl PartialOrd for Flush
impl PartialOrd for Flush
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Flush
impl Eq for Flush
impl StructuralPartialEq for Flush
Auto Trait Implementations§
impl Freeze for Flush
impl RefUnwindSafe for Flush
impl Send for Flush
impl Sync for Flush
impl Unpin for Flush
impl UnwindSafe for Flush
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