fidl_fuchsia_hardware_vsock

Trait DeviceProxyInterface

Source
pub trait DeviceProxyInterface: Send + Sync {
    type StartResponseFut: Future<Output = Result<DeviceStartResult, Error>> + Send;
    type SendRequestResponseFut: Future<Output = Result<DeviceSendRequestResult, Error>> + Send;
    type SendShutdownResponseFut: Future<Output = Result<DeviceSendShutdownResult, Error>> + Send;
    type SendRstResponseFut: Future<Output = Result<DeviceSendRstResult, Error>> + Send;
    type SendResponseResponseFut: Future<Output = Result<DeviceSendResponseResult, Error>> + Send;
    type GetCidResponseFut: Future<Output = Result<u32, Error>> + Send;

    // Required methods
    fn start(&self, cb: ClientEnd<CallbacksMarker>) -> Self::StartResponseFut;
    fn send_request(
        &self,
        addr: &Addr,
        data: Socket,
    ) -> Self::SendRequestResponseFut;
    fn send_shutdown(&self, addr: &Addr) -> Self::SendShutdownResponseFut;
    fn send_rst(&self, addr: &Addr) -> Self::SendRstResponseFut;
    fn send_response(
        &self,
        addr: &Addr,
        data: Socket,
    ) -> Self::SendResponseResponseFut;
    fn get_cid(&self) -> Self::GetCidResponseFut;
}

Required Associated Types§

Required Methods§

Source

fn start(&self, cb: ClientEnd<CallbacksMarker>) -> Self::StartResponseFut

Source

fn send_request( &self, addr: &Addr, data: Socket, ) -> Self::SendRequestResponseFut

Source

fn send_shutdown(&self, addr: &Addr) -> Self::SendShutdownResponseFut

Source

fn send_rst(&self, addr: &Addr) -> Self::SendRstResponseFut

Source

fn send_response( &self, addr: &Addr, data: Socket, ) -> Self::SendResponseResponseFut

Source

fn get_cid(&self) -> Self::GetCidResponseFut

Implementors§

Source§

impl DeviceProxyInterface for DeviceProxy

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

type GetCidResponseFut = QueryResponseFut<u32>