#[non_exhaustive]pub enum ValueWireLimitKind {
InputBytes,
Depth,
Nodes,
CollectionItems,
MapEntries,
StringBytes,
NumericBytes,
}Expand description
Shared resource category enforced while decoding one wire document.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InputBytes
Complete encoded input length.
Depth
Recursive wire depth.
Nodes
Total decoded node count.
CollectionItems
Elements in one collection.
MapEntries
Entries in one map.
StringBytes
Bytes in one decoded string.
NumericBytes
UTF-8 bytes in one decoded numeric representation.
Trait Implementations§
Source§impl Clone for ValueWireLimitKind
impl Clone for ValueWireLimitKind
Source§fn clone(&self) -> ValueWireLimitKind
fn clone(&self) -> ValueWireLimitKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ValueWireLimitKind
Source§impl Debug for ValueWireLimitKind
impl Debug for ValueWireLimitKind
impl Eq for ValueWireLimitKind
Source§impl Hash for ValueWireLimitKind
impl Hash for ValueWireLimitKind
Source§impl PartialEq for ValueWireLimitKind
impl PartialEq for ValueWireLimitKind
impl StructuralPartialEq for ValueWireLimitKind
Auto Trait Implementations§
impl Freeze for ValueWireLimitKind
impl RefUnwindSafe for ValueWireLimitKind
impl Send for ValueWireLimitKind
impl Sync for ValueWireLimitKind
impl Unpin for ValueWireLimitKind
impl UnsafeUnpin for ValueWireLimitKind
impl UnwindSafe for ValueWireLimitKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoValueDefault<T> for T
impl<T> IntoValueDefault<T> for T
Source§fn into_value_default(self) -> T
fn into_value_default(self) -> T
Converts this argument into the default value. Read more