pub enum LimitsError {
Show 30 variants
EmptyByteSize(String),
UnknownByteUnit {
unit: String,
},
BadByteMagnitude(String),
NonIntegerByteMagnitude {
value: String,
},
LeadingZeroByteMagnitude {
value: String,
},
WhitespaceInByteSize {
value: String,
byte: u8,
},
NonAsciiWhitespaceInByteSize {
value: String,
ch: char,
codepoint: u32,
},
EmptyDuration(String),
UnknownDurationUnit {
unit: String,
},
BadDurationMagnitude(String),
NonIntegerDurationMagnitude {
value: String,
},
LeadingZeroDurationMagnitude {
value: String,
},
WhitespaceInDuration {
value: String,
byte: u8,
},
NonAsciiWhitespaceInDuration {
value: String,
ch: char,
codepoint: u32,
},
BadMillicores(String),
NonIntegerMillicoreMagnitude {
value: String,
},
LeadingZeroMillicoreMagnitude {
value: String,
},
WhitespaceInMillicores {
value: String,
byte: u8,
},
NonAsciiWhitespaceInMillicores {
value: String,
ch: char,
codepoint: u32,
},
MemoryZero,
MemoryBelowWasm32Page {
bytes: u64,
},
MemoryExceedsWasm32Cap {
bytes: u64,
},
MemoryNotPageMultiple {
bytes: u64,
},
FuelZero,
FuelExceedsCap {
fuel: u64,
},
WallClockZero,
WallClockNotCanonical {
wall_clock: Duration,
},
WallClockExceedsCap {
wall_clock: Duration,
},
CpuZero,
CpuExceedsCap {
millicores: u32,
},
}Variants§
EmptyByteSize(String)
UnknownByteUnit
BadByteMagnitude(String)
NonIntegerByteMagnitude
LeadingZeroByteMagnitude
WhitespaceInByteSize
NonAsciiWhitespaceInByteSize
EmptyDuration(String)
UnknownDurationUnit
BadDurationMagnitude(String)
NonIntegerDurationMagnitude
LeadingZeroDurationMagnitude
WhitespaceInDuration
NonAsciiWhitespaceInDuration
BadMillicores(String)
NonIntegerMillicoreMagnitude
LeadingZeroMillicoreMagnitude
WhitespaceInMillicores
NonAsciiWhitespaceInMillicores
MemoryZero
MemoryBelowWasm32Page
MemoryExceedsWasm32Cap
MemoryNotPageMultiple
FuelZero
FuelExceedsCap
WallClockZero
WallClockNotCanonical
WallClockExceedsCap
CpuZero
CpuExceedsCap
Trait Implementations§
Source§impl Debug for LimitsError
impl Debug for LimitsError
Source§impl Display for LimitsError
impl Display for LimitsError
impl Eq for LimitsError
Source§impl Error for LimitsError
impl Error for LimitsError
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 LimitsError
impl PartialEq for LimitsError
impl StructuralPartialEq for LimitsError
Auto Trait Implementations§
impl Freeze for LimitsError
impl RefUnwindSafe for LimitsError
impl Send for LimitsError
impl Sync for LimitsError
impl Unpin for LimitsError
impl UnsafeUnpin for LimitsError
impl UnwindSafe for LimitsError
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.