Struct fidl_next::decoder::BasicDecoder
source · pub struct BasicDecoder<'buf> { /* private fields */ }
Expand description
A basic decoder.
Basic decoders do not support resources.
Implementations§
Trait Implementations§
source§impl<'buf> Decoder<'buf> for BasicDecoder<'buf>
impl<'buf> Decoder<'buf> for BasicDecoder<'buf>
source§fn take_chunks(
&mut self,
count: usize,
) -> Result<&'buf mut [Chunk], DecodeError>
fn take_chunks( &mut self, count: usize, ) -> Result<&'buf mut [Chunk], DecodeError>
Takes a slice of
Chunk
s from the decoder. Read moreAuto Trait Implementations§
impl<'buf> Freeze for BasicDecoder<'buf>
impl<'buf> RefUnwindSafe for BasicDecoder<'buf>
impl<'buf> Send for BasicDecoder<'buf>
impl<'buf> Sync for BasicDecoder<'buf>
impl<'buf> Unpin for BasicDecoder<'buf>
impl<'buf> !UnwindSafe for BasicDecoder<'buf>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<'buf, D> DecoderExt<'buf> for D
impl<'buf, D> DecoderExt<'buf> for D
source§fn take_slot<T>(&mut self) -> Result<Slot<'buf, T>, DecodeError>
fn take_slot<T>(&mut self) -> Result<Slot<'buf, T>, DecodeError>
Takes enough chunks for a
T
, returning a Slot
of the taken value.source§fn take_slice_slot<T>(
&mut self,
len: usize,
) -> Result<Slot<'buf, [T]>, DecodeError>
fn take_slice_slot<T>( &mut self, len: usize, ) -> Result<Slot<'buf, [T]>, DecodeError>
Takes enough chunks for a slice of
T
, returning a Slot
of the taken slice.