fidl_fuchsia_netemul_test

Trait CounterProxyInterface

Source
pub trait CounterProxyInterface: Send + Sync {
    type IncrementResponseFut: Future<Output = Result<u32, Error>> + Send;
    type TryOpenDirectoryResponseFut: Future<Output = Result<CounterTryOpenDirectoryResult, Error>> + Send;

    // Required methods
    fn increment(&self) -> Self::IncrementResponseFut;
    fn connect_to_protocol(
        &self,
        protocol_name: &str,
        request: Channel,
    ) -> Result<(), Error>;
    fn open_in_namespace(
        &self,
        path: &str,
        flags: Flags,
        request: Channel,
    ) -> Result<(), Error>;
    fn try_open_directory(
        &self,
        path: &str,
    ) -> Self::TryOpenDirectoryResponseFut;
}

Required Associated Types§

Required Methods§

Source

fn increment(&self) -> Self::IncrementResponseFut

Source

fn connect_to_protocol( &self, protocol_name: &str, request: Channel, ) -> Result<(), Error>

Source

fn open_in_namespace( &self, path: &str, flags: Flags, request: Channel, ) -> Result<(), Error>

Source

fn try_open_directory(&self, path: &str) -> Self::TryOpenDirectoryResponseFut

Implementors§