Struct stomp_parser::client::ConnectFrame
source · pub struct ConnectFrame {
pub host: HostValue,
pub accept_version: AcceptVersionValue,
pub heartbeat: HeartBeatValue,
pub login: Option<LoginValue>,
pub passcode: Option<PasscodeValue>,
/* 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.
Fields§
§host: HostValue
The value of the host
header.
accept_version: AcceptVersionValue
The value of the accept_version
header.
heartbeat: HeartBeatValue
The value of the heartbeat
header.
Defaults to (0,0)
if not supplied.
login: Option<LoginValue>
The value of the login
header.
passcode: Option<PasscodeValue>
The value of the passcode
header.
Implementations§
Trait Implementations§
source§impl Debug for ConnectFrame
impl Debug for ConnectFrame
Auto Trait Implementations§
impl RefUnwindSafe for ConnectFrame
impl Send for ConnectFrame
impl Sync for ConnectFrame
impl Unpin for ConnectFrame
impl UnwindSafe for ConnectFrame
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