pub enum ByteSizeParseError {
Empty {
input: String,
},
NotANumber {
input: String,
value: String,
},
UnknownUnit {
input: String,
unit: String,
},
Overflow {
input: String,
},
}Expand description
Why a byte-size string could not be accepted.
Variants§
Empty
The input contained no digits.
NotANumber
The numeric part was not a valid integer.
UnknownUnit
The unit suffix was not recognised.
Overflow
The value overflowed a u64.
Trait Implementations§
Source§impl Clone for ByteSizeParseError
impl Clone for ByteSizeParseError
Source§fn clone(&self) -> ByteSizeParseError
fn clone(&self) -> ByteSizeParseError
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 moreSource§impl Debug for ByteSizeParseError
impl Debug for ByteSizeParseError
Source§impl Display for ByteSizeParseError
impl Display for ByteSizeParseError
impl Eq for ByteSizeParseError
Source§impl Error for ByteSizeParseError
impl Error for ByteSizeParseError
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 ByteSizeParseError
impl PartialEq for ByteSizeParseError
impl StructuralPartialEq for ByteSizeParseError
Auto Trait Implementations§
impl Freeze for ByteSizeParseError
impl RefUnwindSafe for ByteSizeParseError
impl Send for ByteSizeParseError
impl Sync for ByteSizeParseError
impl Unpin for ByteSizeParseError
impl UnsafeUnpin for ByteSizeParseError
impl UnwindSafe for ByteSizeParseError
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