Struct ntex_mqtt::v5::HandshakeAck
source · 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