fidl_fuchsia_io_test

Trait TestHarnessProxyInterface

Source
pub trait TestHarnessProxyInterface: Send + Sync {
    type GetConfigResponseFut: Future<Output = Result<HarnessConfig, Error>> + Send;
    type OpenServiceDirectoryResponseFut: Future<Output = Result<ClientEnd<DirectoryMarker>, Error>> + Send;

    // Required methods
    fn get_config(&self) -> Self::GetConfigResponseFut;
    fn create_directory(
        &self,
        contents: Vec<Option<Box<DirectoryEntry>>>,
        flags: Flags,
        object_request: ServerEnd<DirectoryMarker>,
    ) -> Result<(), Error>;
    fn open_service_directory(&self) -> Self::OpenServiceDirectoryResponseFut;
}

Required Associated Types§

Source

type GetConfigResponseFut: Future<Output = Result<HarnessConfig, Error>> + Send

Source

type OpenServiceDirectoryResponseFut: Future<Output = Result<ClientEnd<DirectoryMarker>, Error>> + Send

Required Methods§

Source

fn get_config(&self) -> Self::GetConfigResponseFut

Source

fn create_directory( &self, contents: Vec<Option<Box<DirectoryEntry>>>, flags: Flags, object_request: ServerEnd<DirectoryMarker>, ) -> Result<(), Error>

Source

fn open_service_directory(&self) -> Self::OpenServiceDirectoryResponseFut

Implementors§

Source§

impl TestHarnessProxyInterface for TestHarnessProxy

Source§

type GetConfigResponseFut = QueryResponseFut<HarnessConfig>

Source§

type OpenServiceDirectoryResponseFut = QueryResponseFut<ClientEnd<DirectoryMarker>>