fidl_fuchsia_paver

Trait DataSinkProxyInterface

Source
pub trait DataSinkProxyInterface: Send + Sync {
    type ReadAssetResponseFut: Future<Output = Result<DataSinkReadAssetResult, Error>> + Send;
    type WriteAssetResponseFut: Future<Output = Result<i32, Error>> + Send;
    type WriteFirmwareResponseFut: Future<Output = Result<WriteFirmwareResult, Error>> + Send;
    type ReadFirmwareResponseFut: Future<Output = Result<DataSinkReadFirmwareResult, Error>> + Send;
    type WriteVolumesResponseFut: Future<Output = Result<i32, Error>> + Send;
    type WriteOpaqueVolumeResponseFut: Future<Output = Result<DataSinkWriteOpaqueVolumeResult, Error>> + Send;
    type WriteSparseVolumeResponseFut: Future<Output = Result<DataSinkWriteSparseVolumeResult, Error>> + Send;
    type FlushResponseFut: Future<Output = Result<i32, Error>> + Send;

    // Required methods
    fn read_asset(
        &self,
        configuration: Configuration,
        asset: Asset,
    ) -> Self::ReadAssetResponseFut;
    fn write_asset(
        &self,
        configuration: Configuration,
        asset: Asset,
        payload: Buffer,
    ) -> Self::WriteAssetResponseFut;
    fn write_firmware(
        &self,
        configuration: Configuration,
        type_: &str,
        payload: Buffer,
    ) -> Self::WriteFirmwareResponseFut;
    fn read_firmware(
        &self,
        configuration: Configuration,
        type_: &str,
    ) -> Self::ReadFirmwareResponseFut;
    fn write_volumes(
        &self,
        payload: ClientEnd<PayloadStreamMarker>,
    ) -> Self::WriteVolumesResponseFut;
    fn write_opaque_volume(
        &self,
        payload: Buffer,
    ) -> Self::WriteOpaqueVolumeResponseFut;
    fn write_sparse_volume(
        &self,
        payload: Buffer,
    ) -> Self::WriteSparseVolumeResponseFut;
    fn flush(&self) -> Self::FlushResponseFut;
}

Required Associated Types§

Required Methods§

Source

fn read_asset( &self, configuration: Configuration, asset: Asset, ) -> Self::ReadAssetResponseFut

Source

fn write_asset( &self, configuration: Configuration, asset: Asset, payload: Buffer, ) -> Self::WriteAssetResponseFut

Source

fn write_firmware( &self, configuration: Configuration, type_: &str, payload: Buffer, ) -> Self::WriteFirmwareResponseFut

Source

fn read_firmware( &self, configuration: Configuration, type_: &str, ) -> Self::ReadFirmwareResponseFut

Source

fn write_volumes( &self, payload: ClientEnd<PayloadStreamMarker>, ) -> Self::WriteVolumesResponseFut

Source

fn write_opaque_volume( &self, payload: Buffer, ) -> Self::WriteOpaqueVolumeResponseFut

Source

fn write_sparse_volume( &self, payload: Buffer, ) -> Self::WriteSparseVolumeResponseFut

Source

fn flush(&self) -> Self::FlushResponseFut

Implementors§