Struct Limits

pub struct Limits { pub bytes: usize }

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

Trait Implementations

impl Clone for Limits

fn clone(&self) -> Self

impl Copy for Limits

impl Debug for Limits

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Default for Limits

fn default() -> 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 UnsafeUnpin for Limits

impl UnwindSafe for Limits

Blanket Implementations

impl<T> Any for Limits where T: 'static + ?Sized,

impl<T> Borrow<T> for Limits where T: ?Sized,

impl<T> BorrowMut<T> for Limits where T: ?Sized,

impl<T> CloneToUninit for Limits where T: Clone,

impl<T> From<T> for Limits

impl<T> ToOwned for Limits where T: Clone,

impl<T, U> Into<U> for Limits where U: From<T>,

impl<T, U> TryFrom<U> for Limits where U: Into<T>,

impl<T, U> TryInto<U> for Limits where U: TryFrom<T>,