pub struct SendFrame<'a> {
pub custom: Vec<CustomValue>,
/* private fields */
}
Expand description
Sends a message to a specific destination.
This frame has required headers destination
and optional headers content_type
,content_length
,transaction
,receipt
.
Fields§
§custom: Vec<CustomValue>
Implementations§
Source§impl<'a> SendFrame<'a>
impl<'a> SendFrame<'a>
pub fn body(&self) -> Option<&'a [u8]>
Sourcepub fn destination(&'a self) -> &'a DestinationValue<'a>
pub fn destination(&'a self) -> &'a DestinationValue<'a>
The value of the destination
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.
Sourcepub fn transaction(&'a self) -> Option<&'a TransactionValue<'a>>
pub fn transaction(&'a self) -> Option<&'a TransactionValue<'a>>
The value of the transaction
header.
Sourcepub fn receipt(&'a self) -> Option<&'a ReceiptValue<'a>>
pub fn receipt(&'a self) -> Option<&'a ReceiptValue<'a>>
The value of the receipt
header.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for SendFrame<'a>
impl<'a> RefUnwindSafe for SendFrame<'a>
impl<'a> Send for SendFrame<'a>
impl<'a> Sync for SendFrame<'a>
impl<'a> Unpin for SendFrame<'a>
impl<'a> UnwindSafe for SendFrame<'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