fidl_fuchsia_netemul_network

Trait FakeEndpointProxyInterface

Source
pub trait FakeEndpointProxyInterface: Send + Sync {
    type WriteResponseFut: Future<Output = Result<(), Error>> + Send;
    type ReadResponseFut: Future<Output = Result<(Vec<u8>, u64), Error>> + Send;

    // Required methods
    fn write(&self, data: &[u8]) -> Self::WriteResponseFut;
    fn read(&self) -> Self::ReadResponseFut;
}

Required Associated Types§

Source

type WriteResponseFut: Future<Output = Result<(), Error>> + Send

Source

type ReadResponseFut: Future<Output = Result<(Vec<u8>, u64), Error>> + Send

Required Methods§

Source

fn write(&self, data: &[u8]) -> Self::WriteResponseFut

Source

fn read(&self) -> Self::ReadResponseFut

Implementors§