pub struct Decoder<'f> { /* private fields */ }Expand description
Reads one message from its frames.
Implementations§
Source§impl<'f> Decoder<'f>
impl<'f> Decoder<'f>
Sourcepub fn peek_tag(&self) -> Result<&'f str>
pub fn peek_tag(&self) -> Result<&'f str>
The tag of the tagged array struct that comes next, without consuming it.
Sourcepub fn float(&mut self) -> Result<f64>
pub fn float(&mut self) -> Result<f64>
Read a float. Integers are accepted, as msgspec does for float fields.
Trait Implementations§
Auto Trait Implementations§
impl<'f> Freeze for Decoder<'f>
impl<'f> RefUnwindSafe for Decoder<'f>
impl<'f> Send for Decoder<'f>
impl<'f> Sync for Decoder<'f>
impl<'f> Unpin for Decoder<'f>
impl<'f> UnsafeUnpin for Decoder<'f>
impl<'f> UnwindSafe for Decoder<'f>
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