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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more