pub struct HandshakeAck<St> { /* private fields */ }Expand description
Handshake ack message
Implementations§
Source§impl<St> HandshakeAck<St>
impl<St> HandshakeAck<St>
Sourcepub fn keep_alive(self, timeout: u16) -> Self
pub fn keep_alive(self, timeout: u16) -> Self
Set idle keep-alive for the connection in seconds.
This method sets server_keepalive_sec property for ConnectAck
response packet.
By default idle keep-alive is set to 30 seconds. Panics if timeout is 0.
Sourcepub fn with(self, f: impl FnOnce(&mut ConnectAck)) -> Self
pub fn with(self, f: impl FnOnce(&mut ConnectAck)) -> Self
Access to ConnectAck packet