pub struct EpeeValueLimits {
pub min_element_size: usize,
pub max_sequence_len: usize,
}Expand description
Limits applied while decoding an epee value.
Fields§
§min_element_size: usizeThis is a safety value that is used to enforce that a minimum number of bytes are read for a given element. This is to protect types where their epee wire encoding could be a lot smaller than their size in memory. This is allowed to be ignored if it is safe for that type to do so.
max_sequence_len: usizeThe maximum number of elements allowed in a sequence. Will be ignored when the type is not a sequence.
Trait Implementations§
Source§impl Clone for EpeeValueLimits
impl Clone for EpeeValueLimits
Source§fn clone(&self) -> EpeeValueLimits
fn clone(&self) -> EpeeValueLimits
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 EpeeValueLimits
Source§impl Debug for EpeeValueLimits
impl Debug for EpeeValueLimits
impl Eq for EpeeValueLimits
Source§impl PartialEq for EpeeValueLimits
impl PartialEq for EpeeValueLimits
impl StructuralPartialEq for EpeeValueLimits
Auto Trait Implementations§
impl Freeze for EpeeValueLimits
impl RefUnwindSafe for EpeeValueLimits
impl Send for EpeeValueLimits
impl Sync for EpeeValueLimits
impl Unpin for EpeeValueLimits
impl UnsafeUnpin for EpeeValueLimits
impl UnwindSafe for EpeeValueLimits
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,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 16 bytes