[−][src]Enum rr_mux::muxed::Muxed
Muxed is a container for either a request or response message
Variants
Request(Req)
Response(Resp)
Methods
impl<Req, Resp> Muxed<Req, Resp>
[src]
pub fn req(self) -> Option<Req>
[src]
Fetch a request if muxed contains a request type
pub fn resp(self) -> Option<Resp>
[src]
Fetch a response if muxed contains a response type
Trait Implementations
impl<Req: PartialEq, Resp: PartialEq> PartialEq<Muxed<Req, Resp>> for Muxed<Req, Resp>
[src]
fn eq(&self, other: &Muxed<Req, Resp>) -> bool
[src]
fn ne(&self, other: &Muxed<Req, Resp>) -> bool
[src]
impl<Req: Debug, Resp: Debug> Debug for Muxed<Req, Resp>
[src]
Auto Trait Implementations
impl<Req, Resp> Send for Muxed<Req, Resp> where
Req: Send,
Resp: Send,
Req: Send,
Resp: Send,
impl<Req, Resp> Sync for Muxed<Req, Resp> where
Req: Sync,
Resp: Sync,
Req: Sync,
Resp: Sync,
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,