pub enum ValueError {
StringTooLong {
actual: usize,
maximum: usize,
},
BytesTooLong {
actual: usize,
maximum: usize,
},
TooManyListEntries {
actual: usize,
maximum: usize,
},
TooManyRecordFields {
actual: usize,
maximum: usize,
},
DuplicateRecordField {
field_id: FieldId,
},
NestingTooDeep {
depth: usize,
maximum: usize,
},
}Expand description
A bounded-value construction failure.
Variants§
StringTooLong
A string exceeds the process hard limit.
BytesTooLong
A byte value exceeds the process hard limit.
TooManyListEntries
A list exceeds the process hard entry limit.
TooManyRecordFields
A record exceeds the process hard field limit.
DuplicateRecordField
Two record fields use the same stable field ID.
NestingTooDeep
A list or record would exceed the canonical nesting limit.
Trait Implementations§
Source§impl Clone for ValueError
impl Clone for ValueError
Source§impl Debug for ValueError
impl Debug for ValueError
Source§impl Display for ValueError
impl Display for ValueError
impl Eq for ValueError
Source§impl Error for ValueError
impl Error for ValueError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for ValueError
impl PartialEq for ValueError
impl StructuralPartialEq for ValueError
Auto Trait Implementations§
impl Freeze for ValueError
impl RefUnwindSafe for ValueError
impl Send for ValueError
impl Sync for ValueError
impl Unpin for ValueError
impl UnsafeUnpin for ValueError
impl UnwindSafe for ValueError
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