[−][src]Enum rr_mux::mux::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]
impl<REQ, RESP> Muxed<REQ, RESP>
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: PartialEq, RESP: PartialEq> PartialEq<Muxed<REQ, RESP>> for Muxed<REQ, RESP>
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]
impl<REQ: Debug, RESP: Debug> Debug for Muxed<REQ, RESP>
Auto Trait Implementations
impl<REQ, RESP> Send for Muxed<REQ, RESP> where
REQ: Send,
RESP: Send,
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> Sync for Muxed<REQ, RESP> where
REQ: Sync,
RESP: Sync,
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
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]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |