pub struct ValueTooLong;Expand description
Returned when a value is longer than the specification’s
maxLength for its field.
Only an open value set can produce this, and only from
from_wire_or_other: a value too long for the field is not one the
field could have carried, so it is rejected rather than truncated.
Trait Implementations§
Source§impl Clone for ValueTooLong
impl Clone for ValueTooLong
Source§fn clone(&self) -> ValueTooLong
fn clone(&self) -> ValueTooLong
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 ValueTooLong
Source§impl Debug for ValueTooLong
impl Debug for ValueTooLong
Source§impl Display for ValueTooLong
impl Display for ValueTooLong
impl Eq for ValueTooLong
Source§impl Error for ValueTooLong
impl Error for ValueTooLong
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 Hash for ValueTooLong
impl Hash for ValueTooLong
Source§impl PartialEq for ValueTooLong
impl PartialEq for ValueTooLong
impl StructuralPartialEq for ValueTooLong
Auto Trait Implementations§
impl Freeze for ValueTooLong
impl RefUnwindSafe for ValueTooLong
impl Send for ValueTooLong
impl Sync for ValueTooLong
impl Unpin for ValueTooLong
impl UnsafeUnpin for ValueTooLong
impl UnwindSafe for ValueTooLong
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