[−][src]Enum tokio_proto::streaming::Message
Message sent and received from a multiplexed service
Variants
Has no associated streaming body
Has associated streaming body
Methods
impl<T, B> Message<T, B>
[src]
pub fn get_ref(&self) -> &T
[src]
Returns a reference to the inner value
pub fn get_mut(&mut self) -> &mut T
[src]
Returns a mutable reference to the inner value
pub fn into_inner(self) -> T
[src]
Consumes the value and returns the inner value
pub fn take_body(&mut self) -> Option<B>
[src]
If the Message
value has an associated body stream, return it. The
original Message
value will then become a WithoutBody
variant.
Trait Implementations
impl<T, B> Debug for Message<T, B> where
T: Debug,
[src]
T: Debug,
impl<T, B> Deref for Message<T, B>
[src]
impl<T, B> DerefMut for Message<T, B>
[src]
impl<T, B> PartialEq<T> for Message<T, B> where
T: PartialEq,
[src]
T: PartialEq,
Auto Trait Implementations
impl<T, B> RefUnwindSafe for Message<T, B> where
B: RefUnwindSafe,
T: RefUnwindSafe,
B: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, B> Send for Message<T, B> where
B: Send,
T: Send,
B: Send,
T: Send,
impl<T, B> Sync for Message<T, B> where
B: Sync,
T: Sync,
B: Sync,
T: Sync,
impl<T, B> Unpin for Message<T, B> where
B: Unpin,
T: Unpin,
B: Unpin,
T: Unpin,
impl<T, B> UnwindSafe for Message<T, B> where
B: UnwindSafe,
T: UnwindSafe,
B: UnwindSafe,
T: 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, 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>,