pub struct Limits {
pub bytes: usize,
}
Expand description
Limits on the resources the Decoder
is allowed too use
Fields§
§bytes: usize
maximum number of bytes the decoder is allowed to allocate, default is 64Mib
Implementations§
source§impl Limits
impl Limits
pub(crate) fn reserve_bytes( &mut self, bytes: usize, ) -> Result<(), DecodingError>
Trait Implementations§
impl Copy for Limits
Auto Trait Implementations§
impl Freeze for Limits
impl RefUnwindSafe for Limits
impl Send for Limits
impl Sync for Limits
impl Unpin for Limits
impl UnwindSafe for Limits
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