fidl_fuchsia_fshost

Trait AdminProxyInterface

Source
pub trait AdminProxyInterface: Send + Sync {
    type MountResponseFut: Future<Output = Result<AdminMountResult, Error>> + Send;
    type UnmountResponseFut: Future<Output = Result<AdminUnmountResult, Error>> + Send;
    type GetDevicePathResponseFut: Future<Output = Result<AdminGetDevicePathResult, Error>> + Send;
    type WriteDataFileResponseFut: Future<Output = Result<AdminWriteDataFileResult, Error>> + Send;
    type WipeStorageResponseFut: Future<Output = Result<AdminWipeStorageResult, Error>> + Send;
    type ShredDataVolumeResponseFut: Future<Output = Result<AdminShredDataVolumeResult, Error>> + Send;
    type StorageHostEnabledResponseFut: Future<Output = Result<bool, Error>> + Send;

    // Required methods
    fn mount(
        &self,
        device: ClientEnd<BlockMarker>,
        name: &str,
        options: MountOptions,
    ) -> Self::MountResponseFut;
    fn unmount(&self, name: &str) -> Self::UnmountResponseFut;
    fn get_device_path(&self, fs_id: u64) -> Self::GetDevicePathResponseFut;
    fn write_data_file(
        &self,
        filename: &str,
        payload: Vmo,
    ) -> Self::WriteDataFileResponseFut;
    fn wipe_storage(
        &self,
        blobfs_root: Option<ServerEnd<DirectoryMarker>>,
        blob_creator: Option<ServerEnd<BlobCreatorMarker>>,
    ) -> Self::WipeStorageResponseFut;
    fn shred_data_volume(&self) -> Self::ShredDataVolumeResponseFut;
    fn storage_host_enabled(&self) -> Self::StorageHostEnabledResponseFut;
}

Required Associated Types§

Required Methods§

Source

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

Source

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

Source

fn get_device_path(&self, fs_id: u64) -> Self::GetDevicePathResponseFut

Source

fn write_data_file( &self, filename: &str, payload: Vmo, ) -> Self::WriteDataFileResponseFut

Source

fn wipe_storage( &self, blobfs_root: Option<ServerEnd<DirectoryMarker>>, blob_creator: Option<ServerEnd<BlobCreatorMarker>>, ) -> Self::WipeStorageResponseFut

Source

fn shred_data_volume(&self) -> Self::ShredDataVolumeResponseFut

Source

fn storage_host_enabled(&self) -> Self::StorageHostEnabledResponseFut

Implementors§