Struct etherparse::err::ValueTooBigError
source · pub struct ValueTooBigError<T: Sized + Clone + Display + Debug + Eq + PartialEq + Hash> {
pub actual: T,
pub max_allowed: T,
pub value_type: ValueType,
}
Expand description
Error if a value exceeds the maximum allowed value.
Fields§
§actual: T
Value that was disallowed.
max_allowed: T
Maximum allowed value (inclusive).
value_type: ValueType
Type of value.
Trait Implementations§
source§impl<T: Clone + Sized + Clone + Display + Debug + Eq + PartialEq + Hash> Clone for ValueTooBigError<T>
impl<T: Clone + Sized + Clone + Display + Debug + Eq + PartialEq + Hash> Clone for ValueTooBigError<T>
source§fn clone(&self) -> ValueTooBigError<T>
fn clone(&self) -> ValueTooBigError<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: Debug + Sized + Clone + Display + Debug + Eq + PartialEq + Hash> Debug for ValueTooBigError<T>
impl<T: Debug + Sized + Clone + Display + Debug + Eq + PartialEq + Hash> Debug for ValueTooBigError<T>
source§impl<T> Display for ValueTooBigError<T>
impl<T> Display for ValueTooBigError<T>
source§impl<T> Error for ValueTooBigError<T>
Available on crate feature std
only.
impl<T> Error for ValueTooBigError<T>
Available on crate feature
std
only.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<T: Hash + Sized + Clone + Display + Debug + Eq + PartialEq + Hash> Hash for ValueTooBigError<T>
impl<T: Hash + Sized + Clone + Display + Debug + Eq + PartialEq + Hash> Hash for ValueTooBigError<T>
source§impl<T: PartialEq + Sized + Clone + Display + Debug + Eq + PartialEq + Hash> PartialEq for ValueTooBigError<T>
impl<T: PartialEq + Sized + Clone + Display + Debug + Eq + PartialEq + Hash> PartialEq for ValueTooBigError<T>
impl<T: Eq + Sized + Clone + Display + Debug + Eq + PartialEq + Hash> Eq for ValueTooBigError<T>
impl<T: Sized + Clone + Display + Debug + Eq + PartialEq + Hash> StructuralPartialEq for ValueTooBigError<T>
Auto Trait Implementations§
impl<T> Freeze for ValueTooBigError<T>where
T: Freeze,
impl<T> RefUnwindSafe for ValueTooBigError<T>where
T: RefUnwindSafe,
impl<T> Send for ValueTooBigError<T>where
T: Send,
impl<T> Sync for ValueTooBigError<T>where
T: Sync,
impl<T> Unpin for ValueTooBigError<T>where
T: Unpin,
impl<T> UnwindSafe for ValueTooBigError<T>where
T: UnwindSafe,
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)