[−][src]Enum rr_mux::muxed::Muxed
Muxed is a container for either a request or response message
Variants
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]
fn eq(&self, other: &Muxed<Req, Resp>) -> bool
[src]
fn ne(&self, other: &Muxed<Req, Resp>) -> bool
[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,
Req: RefUnwindSafe,
Resp: RefUnwindSafe,
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,
impl<Req, Resp> Unpin for Muxed<Req, Resp> where
Req: Unpin,
Resp: Unpin,
Req: Unpin,
Resp: Unpin,
impl<Req, Resp> UnwindSafe for Muxed<Req, Resp> where
Req: UnwindSafe,
Resp: UnwindSafe,
Req: UnwindSafe,
Resp: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,