fidl_fuchsia_fs_realm

Trait ControllerProxyInterface

Source
pub trait ControllerProxyInterface: Send + Sync {
    type MountResponseFut: Future<Output = Result<ControllerMountResult, Error>> + Send;
    type UnmountResponseFut: Future<Output = Result<ControllerUnmountResult, Error>> + Send;
    type FormatResponseFut: Future<Output = Result<ControllerFormatResult, Error>> + Send;
    type CheckResponseFut: Future<Output = Result<ControllerCheckResult, Error>> + Send;

    // Required methods
    fn mount(
        &self,
        device: ClientEnd<ControllerMarker>,
        name: &str,
        options: MountOptions,
    ) -> Self::MountResponseFut;
    fn unmount(&self, name: &str) -> Self::UnmountResponseFut;
    fn format(
        &self,
        device: ClientEnd<ControllerMarker>,
        name: &str,
        options: FormatOptions,
    ) -> Self::FormatResponseFut;
    fn check(
        &self,
        device: ClientEnd<ControllerMarker>,
        name: &str,
    ) -> Self::CheckResponseFut;
}

Required Associated Types§

Required Methods§

Source

fn mount( &self, device: ClientEnd<ControllerMarker>, name: &str, options: MountOptions, ) -> Self::MountResponseFut

Source

fn unmount(&self, name: &str) -> Self::UnmountResponseFut

Source

fn format( &self, device: ClientEnd<ControllerMarker>, name: &str, options: FormatOptions, ) -> Self::FormatResponseFut

Source

fn check( &self, device: ClientEnd<ControllerMarker>, name: &str, ) -> Self::CheckResponseFut

Implementors§