Trait fidl_fuchsia_vsock::ListenerProxyInterface

source ·
pub trait ListenerProxyInterface: Send + Sync {
    type ListenResponseFut: Future<Output = Result<ListenerListenResult, Error>> + Send;
    type AcceptResponseFut: Future<Output = Result<ListenerAcceptResult, Error>> + Send;

    // Required methods
    fn listen(&self, backlog: u32) -> Self::ListenResponseFut;
    fn accept(&self, con: ConnectionTransport) -> Self::AcceptResponseFut;
}

Required Associated Types§

Required Methods§

source

fn listen(&self, backlog: u32) -> Self::ListenResponseFut

source

fn accept(&self, con: ConnectionTransport) -> Self::AcceptResponseFut

Implementors§

source§

impl ListenerProxyInterface for ListenerProxy

§

type ListenResponseFut = QueryResponseFut<Result<(), i32>>

§

type AcceptResponseFut = QueryResponseFut<Result<Addr, i32>>