vfs::remote

Trait RemoteLike

Source
pub trait RemoteLike {
    // Required methods
    fn open(
        self: Arc<Self>,
        scope: ExecutionScope,
        flags: OpenFlags,
        path: Path,
        server_end: ServerEnd<NodeMarker>,
    );
    fn open3(
        self: Arc<Self>,
        scope: ExecutionScope,
        path: Path,
        flags: Flags,
        object_request: ObjectRequestRef<'_>,
    ) -> Result<(), Status>;

    // Provided method
    fn lazy(&self, _path: &Path) -> bool { ... }
}

Required Methods§

Source

fn open( self: Arc<Self>, scope: ExecutionScope, flags: OpenFlags, path: Path, server_end: ServerEnd<NodeMarker>, )

Source

fn open3( self: Arc<Self>, scope: ExecutionScope, path: Path, flags: Flags, object_request: ObjectRequestRef<'_>, ) -> Result<(), Status>

Provided Methods§

Source

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.

Implementors§