fidl_fuchsia_hardware_block_partition

Trait PartitionProxyInterface

Source
pub trait PartitionProxyInterface: Send + Sync {
    type GetInfoResponseFut: Future<Output = Result<BlockGetInfoResult, Error>> + Send;
    type GetStatsResponseFut: Future<Output = Result<BlockGetStatsResult, Error>> + Send;
    type GetTypeGuidResponseFut: Future<Output = Result<(i32, Option<Box<Guid>>), Error>> + Send;
    type GetInstanceGuidResponseFut: Future<Output = Result<(i32, Option<Box<Guid>>), Error>> + Send;
    type GetNameResponseFut: Future<Output = Result<(i32, Option<String>), Error>> + Send;
    type GetMetadataResponseFut: Future<Output = Result<PartitionGetMetadataResult, Error>> + Send;

    // Required methods
    fn get_info(&self) -> Self::GetInfoResponseFut;
    fn get_stats(&self, clear: bool) -> Self::GetStatsResponseFut;
    fn open_session(
        &self,
        session: ServerEnd<SessionMarker>,
    ) -> Result<(), Error>;
    fn get_type_guid(&self) -> Self::GetTypeGuidResponseFut;
    fn get_instance_guid(&self) -> Self::GetInstanceGuidResponseFut;
    fn get_name(&self) -> Self::GetNameResponseFut;
    fn get_metadata(&self) -> Self::GetMetadataResponseFut;
}

Required Associated Types§

Source

type GetInfoResponseFut: Future<Output = Result<BlockGetInfoResult, Error>> + Send

Source

type GetStatsResponseFut: Future<Output = Result<BlockGetStatsResult, Error>> + Send

Source

type GetTypeGuidResponseFut: Future<Output = Result<(i32, Option<Box<Guid>>), Error>> + Send

Source

type GetInstanceGuidResponseFut: Future<Output = Result<(i32, Option<Box<Guid>>), Error>> + Send

Source

type GetNameResponseFut: Future<Output = Result<(i32, Option<String>), Error>> + Send

Source

type GetMetadataResponseFut: Future<Output = Result<PartitionGetMetadataResult, Error>> + Send

Required Methods§

Source

fn get_info(&self) -> Self::GetInfoResponseFut

Source

fn get_stats(&self, clear: bool) -> Self::GetStatsResponseFut

Source

fn open_session(&self, session: ServerEnd<SessionMarker>) -> Result<(), Error>

Source

fn get_type_guid(&self) -> Self::GetTypeGuidResponseFut

Source

fn get_instance_guid(&self) -> Self::GetInstanceGuidResponseFut

Source

fn get_name(&self) -> Self::GetNameResponseFut

Source

fn get_metadata(&self) -> Self::GetMetadataResponseFut

Implementors§

Source§

impl PartitionProxyInterface for PartitionProxy

Source§

type GetInfoResponseFut = QueryResponseFut<Result<BlockInfo, i32>>

Source§

type GetStatsResponseFut = QueryResponseFut<Result<BlockStats, i32>>

Source§

type GetTypeGuidResponseFut = QueryResponseFut<(i32, Option<Box<Guid>>)>

Source§

type GetInstanceGuidResponseFut = QueryResponseFut<(i32, Option<Box<Guid>>)>

Source§

type GetNameResponseFut = QueryResponseFut<(i32, Option<String>)>

Source§

type GetMetadataResponseFut = QueryResponseFut<Result<PartitionGetMetadataResponse, i32>>