[][src]Enum rr_mux::muxed::Muxed

pub enum Muxed<Req, Resp> {
    Request(Req),
    Response(Resp),
}

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]

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

impl<Req, Resp> Sync for Muxed<Req, Resp> where
    Req: Sync,
    Resp: Sync

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.