pub enum EntropyPoolError {
EmptyRange,
SampleTooLarge {
sample: u32,
population: u32,
},
PopulationTooLarge {
population: u32,
},
ByteCountOverflow,
}Expand description
Errors returned by the checked sampling methods.
Variants§
EmptyRange
gen_range was asked to sample from an empty range.
SampleTooLarge
The requested sample is larger than the population.
PopulationTooLarge
The requested population cannot be represented or allocated on this platform.
ByteCountOverflow
The byte counter overflowed.
Trait Implementations§
Source§impl Clone for EntropyPoolError
impl Clone for EntropyPoolError
impl Copy for EntropyPoolError
Source§impl Debug for EntropyPoolError
impl Debug for EntropyPoolError
Source§impl Display for EntropyPoolError
impl Display for EntropyPoolError
impl Eq for EntropyPoolError
Source§impl Error for EntropyPoolError
impl Error for EntropyPoolError
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 EntropyPoolError
impl PartialEq for EntropyPoolError
impl StructuralPartialEq for EntropyPoolError
Auto Trait Implementations§
impl Freeze for EntropyPoolError
impl RefUnwindSafe for EntropyPoolError
impl Send for EntropyPoolError
impl Sync for EntropyPoolError
impl Unpin for EntropyPoolError
impl UnsafeUnpin for EntropyPoolError
impl UnwindSafe for EntropyPoolError
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