pub struct SendFrameBuilder { /* 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.
Implementations§
Source§impl SendFrameBuilder
impl SendFrameBuilder
Sourcepub fn content_type(
self,
new_val: <ContentTypeValue<'_> as HeaderValue>::OwnedValue,
) -> SendFrameBuilder
pub fn content_type( self, new_val: <ContentTypeValue<'_> as HeaderValue>::OwnedValue, ) -> SendFrameBuilder
The value of the content_type header.
Sourcepub fn content_length(
self,
new_val: <ContentLengthValue<'_> as HeaderValue>::OwnedValue,
) -> SendFrameBuilder
pub fn content_length( self, new_val: <ContentLengthValue<'_> as HeaderValue>::OwnedValue, ) -> SendFrameBuilder
The value of the content_length header.
Sourcepub fn transaction(
self,
new_val: <TransactionValue<'_> as HeaderValue>::OwnedValue,
) -> SendFrameBuilder
pub fn transaction( self, new_val: <TransactionValue<'_> as HeaderValue>::OwnedValue, ) -> SendFrameBuilder
The value of the transaction header.
Sourcepub fn receipt(
self,
new_val: <ReceiptValue<'_> as HeaderValue>::OwnedValue,
) -> SendFrameBuilder
pub fn receipt( self, new_val: <ReceiptValue<'_> as HeaderValue>::OwnedValue, ) -> SendFrameBuilder
The value of the receipt header.
Sourcepub fn add_custom_header(self, name: String, value: String) -> SendFrameBuilder
pub fn add_custom_header(self, name: String, value: String) -> SendFrameBuilder
Useless doc: cus.
Sourcepub fn body(self, new_value: Vec<u8>) -> SendFrameBuilder
pub fn body(self, new_value: Vec<u8>) -> SendFrameBuilder
Useless doc: body.
pub fn new( destination: <DestinationValue<'static> as HeaderValue>::OwnedValue, ) -> SendFrameBuilder
pub fn build(self) -> SendFrame<'static>
Auto Trait Implementations§
impl Freeze for SendFrameBuilder
impl RefUnwindSafe for SendFrameBuilder
impl Send for SendFrameBuilder
impl Sync for SendFrameBuilder
impl Unpin for SendFrameBuilder
impl UnsafeUnpin for SendFrameBuilder
impl UnwindSafe for SendFrameBuilder
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