Struct ntex_mqtt::v5::HandshakeAck
source · [−]pub struct HandshakeAck<St> { /* private fields */ }
Expand description
Handshake ack message
Implementations
sourceimpl<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
Auto Trait Implementations
impl<St> !RefUnwindSafe for HandshakeAck<St>
impl<St> !Send for HandshakeAck<St>
impl<St> !Sync for HandshakeAck<St>
impl<St> Unpin for HandshakeAck<St>where
St: Unpin,
impl<St> !UnwindSafe for HandshakeAck<St>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more