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 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