[][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: Clone, Resp: Clone> Clone for Muxed<Req, Resp>[src]

impl<Req: Debug, Resp: Debug> Debug for Muxed<Req, Resp>[src]

impl<Req: PartialEq, Resp: PartialEq> PartialEq<Muxed<Req, Resp>> for Muxed<Req, Resp>[src]

impl<Req, Resp> StructuralPartialEq for Muxed<Req, Resp>[src]

Auto Trait Implementations

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

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

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

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

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.