Struct ntex_mqtt::v3::codec::Codec [−][src]
pub struct Codec { /* fields omitted */ }
Expand description
Mqtt v3.1.1 protocol codec
Implementations
impl Codec
[src]
impl Codec
[src]Trait Implementations
impl Decoder for Codec
[src]
impl Decoder for Codec
[src]type Error = DecodeError
type Error = DecodeError
The type of unrecoverable frame decoding errors. Read more
fn decode(&self, src: &mut BytesMut) -> Result<Option<Self::Item>, DecodeError>
[src]
fn decode(&self, src: &mut BytesMut) -> Result<Option<Self::Item>, DecodeError>
[src]Attempts to decode a frame from the provided buffer of bytes.
fn decode_eof(
&self,
buf: &mut BytesMut
) -> Result<Option<Self::Item>, Self::Error>
fn decode_eof(
&self,
buf: &mut BytesMut
) -> Result<Option<Self::Item>, Self::Error>
A default method available to be called when there are no more bytes available to be read from the underlying I/O. Read more
Auto Trait Implementations
impl !RefUnwindSafe for Codec
impl Send for Codec
impl !Sync for Codec
impl Unpin for Codec
impl UnwindSafe for Codec
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self