pub struct Decoder<'de> { /* private fields */ }Implementations§
Source§impl<'de> Decoder<'de>
impl<'de> Decoder<'de>
pub fn new(input: &'de [u8]) -> Self
pub fn with_options(input: &'de [u8], options: DecodeOptions) -> Self
pub fn position(&self) -> usize
pub fn is_eof(&self) -> bool
pub fn decode_message(&mut self) -> Result<Message<'de>>
pub fn decode_message_with_registry<R: SchemaRegistry + ?Sized>( &mut self, registry: &R, ) -> Result<Message<'de>>
pub fn decode_schema(&mut self) -> Result<Schema>
pub fn decode_value(&mut self, schema: &Schema) -> Result<TpackValue<'de>>
Auto Trait Implementations§
impl<'de> Freeze for Decoder<'de>
impl<'de> RefUnwindSafe for Decoder<'de>
impl<'de> Send for Decoder<'de>
impl<'de> Sync for Decoder<'de>
impl<'de> Unpin for Decoder<'de>
impl<'de> UnsafeUnpin for Decoder<'de>
impl<'de> UnwindSafe for Decoder<'de>
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