[−][src]Struct bytecodec::null::NullDecoder
Null decoder.
NullDecoder consumes no bytes and returns Ok(()) when finish_decoding method is called.
Trait Implementations
impl Decode for NullDecoder[src]
type Item = ()
The type of items to be decoded.
fn decode(&mut self, _buf: &[u8], _eos: Eos) -> Result<usize>[src]
fn finish_decoding(&mut self) -> Result<Self::Item>[src]
fn is_idle(&self) -> bool[src]
fn requiring_bytes(&self) -> ByteCount[src]
impl Default for NullDecoder[src]
fn default() -> NullDecoder[src]
impl Debug for NullDecoder[src]
Auto Trait Implementations
impl Send for NullDecoder
impl Unpin for NullDecoder
impl Sync for NullDecoder
impl UnwindSafe for NullDecoder
impl RefUnwindSafe for NullDecoder
Blanket Implementations
impl<T> IoDecodeExt for T where
T: Decode, [src]
T: Decode,
fn decode_from_read_buf<B>(&mut self, buf: &mut ReadBuf<B>) -> Result<()> where
B: AsRef<[u8]>, [src]
B: AsRef<[u8]>,
fn decode_exact<R: Read>(&mut self, reader: R) -> Result<Self::Item>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,