pub enum SyncMode {
Normal,
PreClose,
}
Variants§
Normal
Used when the Sync fuchsia.io method is used.
PreClose
Used when the connection is about to be closed. Typically this will involve flushing data
from caches, but performance is a consideration, so it should only perform what might be
necessary for closing the file. If anything must happen when a file is closed, it must be
implemented in the Node::close
function, not here; a call to sync with this mode is not
guaranteed and not implementing/supporting it should have no effect on correctness. If
Node::close
needs to flush data in an async context, it has to spawn a task. Supporting
this mode means that in most cases there’s no need to spawn a task because there should be
nothing that needs to be flushed (but it must check). This will only be called if the
connection has write permissions; a connection that only has read permissions should not
have made any changes that need flushing.
Trait Implementations§
impl StructuralPartialEq for SyncMode
Auto Trait Implementations§
impl Freeze for SyncMode
impl RefUnwindSafe for SyncMode
impl Send for SyncMode
impl Sync for SyncMode
impl Unpin for SyncMode
impl UnwindSafe for SyncMode
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
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more