[][src]Trait xio_common::SendAndReceive

pub trait SendAndReceive<Q, S> where
    Q: IsRequest<Response = S>,
    S: IsResponse<Request = Q>, 
{ type Error; fn send_and_receive(&mut self, request: Q) -> Result<S, Self::Error>; }

Associated Types

type Error

Loading content...

Required methods

fn send_and_receive(&mut self, request: Q) -> Result<S, Self::Error>

Loading content...

Implementors

impl SendAndReceive<Request, Response> for Connection[src]

type Error = Error

impl SendAndReceive<Vec<Request>, Vec<Response>> for Connection[src]

type Error = Error

impl<Q, S> SendAndReceive<Q, S> for Connection where
    Q: Into<Request> + IsRequest<Response = S>,
    S: TryFromResponse + IsResponse<Request = Q>, 
[src]

type Error = Error

Loading content...