pub struct MessageFrame<'a> {
pub custom: Vec<CustomValue>,
/* private fields */
}
Expand description
This frame has required headers message_id
,destination
,subscription
and optional headers content_type
,content_length
.
Fields§
§custom: Vec<CustomValue>
Implementations§
Source§impl<'a> MessageFrame<'a>
impl<'a> MessageFrame<'a>
pub fn body(&self) -> Option<&'a [u8]>
Sourcepub fn message_id(&'a self) -> &'a MessageIdValue<'a>
pub fn message_id(&'a self) -> &'a MessageIdValue<'a>
The value of the message_id
header.
Sourcepub fn destination(&'a self) -> &'a DestinationValue<'a>
pub fn destination(&'a self) -> &'a DestinationValue<'a>
The value of the destination
header.
Sourcepub fn subscription(&'a self) -> &'a SubscriptionValue<'a>
pub fn subscription(&'a self) -> &'a SubscriptionValue<'a>
The value of the subscription
header.
Sourcepub fn content_type(&'a self) -> Option<&'a ContentTypeValue<'a>>
pub fn content_type(&'a self) -> Option<&'a ContentTypeValue<'a>>
The value of the content_type
header.
Sourcepub fn content_length(&'a self) -> Option<&'a ContentLengthValue<'a>>
pub fn content_length(&'a self) -> Option<&'a ContentLengthValue<'a>>
The value of the content_length
header.
Trait Implementations§
Source§impl<'a> Debug for MessageFrame<'a>
impl<'a> Debug for MessageFrame<'a>
Auto Trait Implementations§
impl<'a> Freeze for MessageFrame<'a>
impl<'a> RefUnwindSafe for MessageFrame<'a>
impl<'a> Send for MessageFrame<'a>
impl<'a> Sync for MessageFrame<'a>
impl<'a> Unpin for MessageFrame<'a>
impl<'a> UnwindSafe for MessageFrame<'a>
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