pub trait RemoteLike {
// Required method
fn open(
self: Arc<Self>,
scope: ExecutionScope,
path: Path,
flags: Flags,
object_request: ObjectRequestRef<'_>,
) -> Result<(), Status>;
// Provided methods
fn lazy(&self, _path: &Path) -> bool { ... }
fn deprecated_open(
self: Arc<Self>,
_scope: ExecutionScope,
flags: OpenFlags,
_path: Path,
server_end: ServerEnd<NodeMarker>,
) { ... }
}
Required Methods§
Sourcefn open(
self: Arc<Self>,
scope: ExecutionScope,
path: Path,
flags: Flags,
object_request: ObjectRequestRef<'_>,
) -> Result<(), Status>
fn open( self: Arc<Self>, scope: ExecutionScope, path: Path, flags: Flags, object_request: ObjectRequestRef<'_>, ) -> Result<(), Status>
Called when a fuchsia.io/Directory.Open request should be forwarded to the remote node.
Provided Methods§
Sourcefn lazy(&self, _path: &Path) -> bool
fn lazy(&self, _path: &Path) -> bool
Returns whether the remote should be opened lazily for the given path. If true, the remote won’t be opened until the channel in the request is readable. This request will not be considered lazy if the request requires an event such as OnRepresentation, and this method will by bypassed.
Sourcefn deprecated_open(
self: Arc<Self>,
_scope: ExecutionScope,
flags: OpenFlags,
_path: Path,
server_end: ServerEnd<NodeMarker>,
)
fn deprecated_open( self: Arc<Self>, _scope: ExecutionScope, flags: OpenFlags, _path: Path, server_end: ServerEnd<NodeMarker>, )
DEPRECATED - Do not implement unless required for backwards compatibility. Called when forwarding fuchsia.io/Directory.DeprecatedOpen requests.