pub struct ConnectFrameBuilder { /* private fields */ }
Expand description
Initiates a STOMP session.
This frame has required headers host
,accept_version
and optional headers heartbeat
,login
,passcode
.
See CONNECT Frame.
Implementations§
Source§impl ConnectFrameBuilder
impl ConnectFrameBuilder
Sourcepub fn heartbeat(
self,
new_val: <HeartBeatValue<'_> as HeaderValue>::OwnedValue,
) -> ConnectFrameBuilder
pub fn heartbeat( self, new_val: <HeartBeatValue<'_> as HeaderValue>::OwnedValue, ) -> ConnectFrameBuilder
The value of the heartbeat
header.
Defaults to (0,0)
if not supplied.
Sourcepub fn login(
self,
new_val: <LoginValue<'_> as HeaderValue>::OwnedValue,
) -> ConnectFrameBuilder
pub fn login( self, new_val: <LoginValue<'_> as HeaderValue>::OwnedValue, ) -> ConnectFrameBuilder
The value of the login
header.
Sourcepub fn passcode(
self,
new_val: <PasscodeValue<'_> as HeaderValue>::OwnedValue,
) -> ConnectFrameBuilder
pub fn passcode( self, new_val: <PasscodeValue<'_> as HeaderValue>::OwnedValue, ) -> ConnectFrameBuilder
The value of the passcode
header.
pub fn new( host: <HostValue<'static> as HeaderValue>::OwnedValue, accept_version: <AcceptVersionValue<'static> as HeaderValue>::OwnedValue, ) -> ConnectFrameBuilder
pub fn build(self) -> ConnectFrame<'static>
Auto Trait Implementations§
impl Freeze for ConnectFrameBuilder
impl RefUnwindSafe for ConnectFrameBuilder
impl Send for ConnectFrameBuilder
impl Sync for ConnectFrameBuilder
impl Unpin for ConnectFrameBuilder
impl UnwindSafe for ConnectFrameBuilder
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