pub struct SubscribeFrameBuilder { /* private fields */ }Expand description
Subscribes to a specific destination.
This frame has required headers destination,id and optional headers ack_type,receipt.
Implementations§
Source§impl SubscribeFrameBuilder
impl SubscribeFrameBuilder
Sourcepub fn ack_type(
self,
new_val: <AckValue<'_> as HeaderValue>::OwnedValue,
) -> SubscribeFrameBuilder
pub fn ack_type( self, new_val: <AckValue<'_> as HeaderValue>::OwnedValue, ) -> SubscribeFrameBuilder
The value of the ack_type header.
Defaults to Auto if not supplied.
Sourcepub fn receipt(
self,
new_val: <ReceiptValue<'_> as HeaderValue>::OwnedValue,
) -> SubscribeFrameBuilder
pub fn receipt( self, new_val: <ReceiptValue<'_> as HeaderValue>::OwnedValue, ) -> SubscribeFrameBuilder
The value of the receipt header.
Sourcepub fn add_custom_header(
self,
name: String,
value: String,
) -> SubscribeFrameBuilder
pub fn add_custom_header( self, name: String, value: String, ) -> SubscribeFrameBuilder
Useless doc: cus.
pub fn new( destination: <DestinationValue<'static> as HeaderValue>::OwnedValue, id: <IdValue<'static> as HeaderValue>::OwnedValue, ) -> SubscribeFrameBuilder
pub fn build(self) -> SubscribeFrame<'static>
Auto Trait Implementations§
impl Freeze for SubscribeFrameBuilder
impl RefUnwindSafe for SubscribeFrameBuilder
impl Send for SubscribeFrameBuilder
impl Sync for SubscribeFrameBuilder
impl Unpin for SubscribeFrameBuilder
impl UnsafeUnpin for SubscribeFrameBuilder
impl UnwindSafe for SubscribeFrameBuilder
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