pub struct Message<S> { /* private fields */ }Implementations§
Source§impl<S> Message<S>
impl<S> Message<S>
pub fn state(&self) -> &S
pub fn state_mut(&mut self) -> &mut S
pub fn session(&self) -> &Session
pub fn session_mut(&mut self) -> &mut Session
pub fn frame(&self) -> &Transfer
pub fn body(&self) -> Option<&Bytes>
pub fn load_message<T: Decode>(&self) -> Result<T, AmqpError>
Trait Implementations§
Auto Trait Implementations§
impl<S> !Freeze for Message<S>
impl<S> !RefUnwindSafe for Message<S>
impl<S> !Send for Message<S>
impl<S> !Sync for Message<S>
impl<S> Unpin for Message<S>
impl<S> !UnwindSafe for Message<S>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more