fidl_fuchsia_starnix_binder

Trait UnixDomainSocketProxyInterface

Source
pub trait UnixDomainSocketProxyInterface: Send + Sync {
    type CloseResponseFut: Future<Output = Result<CloseableCloseResult, Error>> + Send;
    type QueryResponseFut: Future<Output = Result<Vec<u8>, Error>> + Send;
    type GetEventResponseFut: Future<Output = Result<UnixDomainSocketGetEventResult, Error>> + Send;
    type ReadResponseFut: Future<Output = Result<UnixDomainSocketReadResult, Error>> + Send;
    type WriteResponseFut: Future<Output = Result<UnixDomainSocketWriteResult, Error>> + Send;

    // Required methods
    fn clone(&self, request: ServerEnd<CloneableMarker>) -> Result<(), Error>;
    fn close(&self) -> Self::CloseResponseFut;
    fn query(&self) -> Self::QueryResponseFut;
    fn get_event(
        &self,
        payload: &UnixDomainSocketGetEventRequest,
    ) -> Self::GetEventResponseFut;
    fn read(
        &self,
        payload: &UnixDomainSocketReadRequest,
    ) -> Self::ReadResponseFut;
    fn write(
        &self,
        payload: UnixDomainSocketWriteRequest,
    ) -> Self::WriteResponseFut;
}

Required Associated Types§

Required Methods§

Source

fn clone(&self, request: ServerEnd<CloneableMarker>) -> Result<(), Error>

Source

fn close(&self) -> Self::CloseResponseFut

Source

fn query(&self) -> Self::QueryResponseFut

Source

fn get_event( &self, payload: &UnixDomainSocketGetEventRequest, ) -> Self::GetEventResponseFut

Source

fn read(&self, payload: &UnixDomainSocketReadRequest) -> Self::ReadResponseFut

Source

fn write(&self, payload: UnixDomainSocketWriteRequest) -> Self::WriteResponseFut

Implementors§