pub struct ConnectFrame<'a> { /* 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<'a> ConnectFrame<'a>
impl<'a> ConnectFrame<'a>
Sourcepub fn accept_version(&'a self) -> &'a AcceptVersionValue<'a>
pub fn accept_version(&'a self) -> &'a AcceptVersionValue<'a>
The value of the accept_version
header.
Sourcepub fn heartbeat(&'a self) -> &'a HeartBeatValue<'a>
pub fn heartbeat(&'a self) -> &'a HeartBeatValue<'a>
The value of the heartbeat
header.
Defaults to (0,0)
if not supplied.
Sourcepub fn login(&'a self) -> Option<&'a LoginValue<'a>>
pub fn login(&'a self) -> Option<&'a LoginValue<'a>>
The value of the login
header.
Sourcepub fn passcode(&'a self) -> Option<&'a PasscodeValue<'a>>
pub fn passcode(&'a self) -> Option<&'a PasscodeValue<'a>>
The value of the passcode
header.
Trait Implementations§
Source§impl<'a> Debug for ConnectFrame<'a>
impl<'a> Debug for ConnectFrame<'a>
Auto Trait Implementations§
impl<'a> Freeze for ConnectFrame<'a>
impl<'a> RefUnwindSafe for ConnectFrame<'a>
impl<'a> Send for ConnectFrame<'a>
impl<'a> Sync for ConnectFrame<'a>
impl<'a> Unpin for ConnectFrame<'a>
impl<'a> UnwindSafe for ConnectFrame<'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