Trait xio_common::SendAndReceive
[−]
[src]
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
Required Methods
fn send_and_receive(&mut self, request: Q) -> Result<S, Self::Error>
Implementors
impl SendAndReceive<Vec<Request>, Vec<Response>> for Handle type Error = Error;
impl SendAndReceive<Request, Response> for Handle type Error = Error;
impl<Q, S> SendAndReceive<Q, S> for Handle where
Q: Into<Request> + IsRequest<Response = S>,
S: TryFromResponse + IsResponse<Request = Q>, type Error = Error;