Struct stomp_parser::client::SendFrameBuilder
source · 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
Useseless doc: cus
.
sourcepub fn body(self, new_value: Vec<u8>) -> SendFrameBuilder
pub fn body(self, new_value: Vec<u8>) -> SendFrameBuilder
Useseless doc: body
.
pub fn new( destination: <DestinationValue as HeaderValue>::OwnedValue ) -> SendFrameBuilder
pub fn build(self) -> SendFrame
Auto Trait Implementations§
impl RefUnwindSafe for SendFrameBuilder
impl Send for SendFrameBuilder
impl Sync for SendFrameBuilder
impl Unpin 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