Skip to main content

RemoteVolumeProxyInterface

Trait RemoteVolumeProxyInterface 

Source
pub trait RemoteVolumeProxyInterface: Send + Sync {
    type OpenFileResponseFut: Future<Output = Result<RemoteVolumeOpenFileResult, Error>> + Send;
    type CloseResponseFut: Future<Output = Result<RemoteVolumeCloseResult, Error>> + Send;

    // Required methods
    fn open_file(
        &self,
        object_id: u64,
        file: ServerEnd<FileMarker>,
    ) -> Self::OpenFileResponseFut;
    fn close(&self) -> Self::CloseResponseFut;
}

Required Associated Types§

Required Methods§

Source

fn open_file( &self, object_id: u64, file: ServerEnd<FileMarker>, ) -> Self::OpenFileResponseFut

Source

fn close(&self) -> Self::CloseResponseFut

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§