[][src]Enum rr_mux::mux::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
    T: From<U>, 
[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> 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.

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