Struct ntex_mqtt::v5::control::Error [−][src]
pub struct Error<E> { /* fields omitted */ }
Service level error
Implementations
impl<E> Error<E>
[src]
impl<E> Error<E>
[src]pub fn new(err: E) -> Self
[src]
pub fn get_err(&self) -> &E
[src]
Returns reference to mqtt error
pub fn reason_string(self, reason: ByteString) -> Self
[src]
Set reason string for disconnect packet
pub fn server_reference(self, reference: ByteString) -> Self
[src]
Set server reference for disconnect packet
pub fn properties<F>(self, f: F) -> Self where
F: FnOnce(&mut UserProperties),
[src]
F: FnOnce(&mut UserProperties),
Update disconnect packet properties
pub fn ack(self, reason: DisconnectReasonCode) -> ControlResult
[src]
Ack service error, return disconnect packet and close connection.
pub fn ack_with<F>(self, f: F) -> ControlResult where
F: FnOnce(E, Disconnect) -> Disconnect,
[src]
F: FnOnce(E, Disconnect) -> Disconnect,
Ack service error, return disconnect packet and close connection.
Trait Implementations
Auto Trait Implementations
impl<E> RefUnwindSafe for Error<E> where
E: RefUnwindSafe,
impl<E> RefUnwindSafe for Error<E> where
E: RefUnwindSafe,
impl<E> UnwindSafe for Error<E> where
E: UnwindSafe,
impl<E> UnwindSafe for Error<E> where
E: UnwindSafe,
Blanket Implementations
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self