Trait vfs::remote::RemoteLike
source · pub trait RemoteLike {
// Required method
fn open(
self: Arc<Self>,
scope: ExecutionScope,
flags: OpenFlags,
path: Path,
server_end: ServerEnd<NodeMarker>,
);
// Provided methods
fn open3(
self: Arc<Self>,
_scope: ExecutionScope,
_path: Path,
_flags: Flags,
_object_request: ObjectRequestRef<'_>,
) -> Result<(), Status> { ... }
fn lazy(&self, _path: &Path) -> bool { ... }
}
Required Methods§
fn open( self: Arc<Self>, scope: ExecutionScope, flags: OpenFlags, path: Path, server_end: ServerEnd<NodeMarker>, )
Provided Methods§
fn open3( self: Arc<Self>, _scope: ExecutionScope, _path: Path, _flags: Flags, _object_request: ObjectRequestRef<'_>, ) -> Result<(), Status>
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.