pub struct Handshake { /* private fields */ }Expand description
Handshake message
Implementations§
Source§impl Handshake
impl Handshake
pub fn packet(&self) -> &Connect
pub fn packet_mut(&mut self) -> &mut Connect
pub fn packet_size(&self) -> u32
pub fn io(&self) -> &IoBoxed
Sourcepub fn ack<St>(self, st: St) -> HandshakeAck<St>
pub fn ack<St>(self, st: St) -> HandshakeAck<St>
Ack handshake message and set state
Sourcepub fn failed<St>(self, reason_code: ConnectAckReason) -> HandshakeAck<St>
pub fn failed<St>(self, reason_code: ConnectAckReason) -> HandshakeAck<St>
Create handshake ack object with error
Sourcepub fn fail_with<St>(self, ack: ConnectAck) -> HandshakeAck<St>
pub fn fail_with<St>(self, ack: ConnectAck) -> HandshakeAck<St>
Create handshake ack object with provided ConnectAck packet