pub struct Decoder { /* private fields */ }Implementations§
Source§impl Decoder
impl Decoder
pub fn try_from(plan: Plan<Staged>, initial: usize) -> Result<Self, Error>
Sourcepub fn set_max_size(&mut self, n: usize)
pub fn set_max_size(&mut self, n: usize)
Applies an acknowledged maximum. The peer’s next leading size update performs any required eviction before another field can be decoded.
pub fn set_max_list(&mut self, n: Option<usize>)
pub fn dyn_size(&self) -> usize
pub fn dyn_max(&self) -> usize
pub fn dyn_len(&self) -> usize
pub fn dyn_get(&self, index: usize) -> Option<(Span<'_>, Span<'_>)>
pub fn discard(self, input: &[u8]) -> Result<Self, Error>
Auto Trait Implementations§
impl !Send for Decoder
impl !Sync for Decoder
impl Forget for Decoder
impl Freeze for Decoder
impl Move for Decoder
impl RefUnwindSafe for Decoderwhere
NonZero<u32>: RefUnwindSafe,
(): RefUnwindSafe,
State: RefUnwindSafe,
Name: RefUnwindSafe,
Validation: RefUnwindSafe,
impl Unpin for Decoder
impl UnsafeUnpin for Decoderwhere
*const Prefix<State<Staged>, u8, usize> is !null: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
Name: UnsafeUnpin,
Validation: UnsafeUnpin,
impl UnwindSafe for Decoderwhere
NonNull<Prefix<State<Staged>, u8, usize>>: UnwindSafe,
RawVecInner: UnwindSafe,
Name: UnwindSafe,
Validation: UnwindSafe,
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