pub enum SyncMode {
Normal,
PreClose,
}
Used when the Sync fuchsia.io method is used.
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.
Returns the “default value” for a type.
Read more
This method tests for self
and other
values to be equal, and is used
by ==
.
This method tests for !=
. The default implementation is almost always
sufficient, and should not be overridden without very good reason.
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Encodes the object into the encoder’s buffers. Any handles stored in the
object are swapped for
Handle::INVALID
.
Read more
Encodes the object into the encoder’s buffers. Any handles stored in the
object are swapped for
Handle::INVALID
.
Read more
Returns the argument unchanged.
Instruments this type with the provided [
Span
], returning an
Instrumented
wrapper.
Read more
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
Cast the given object into a dyn std::any::Any
.
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer.
Read more
Mutably dereferences the given pointer.
Read more
Drops the object pointed to by the given pointer.
Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.