pub enum PoolError {
Config(&'static str),
Arena(ArenaError),
}Expand description
Why a pool could not be created.
Variants§
Config(&'static str)
The configuration is invalid (alignment or a class size is not a
power of two, a class is smaller than the alignment, a count is zero
or above IndexStack::MAX_CAPACITY, or the total size overflows).
Arena(ArenaError)
Mapping the arena failed.
Trait Implementations§
impl Copy for PoolError
impl Eq for PoolError
Source§impl Error for PoolError
impl Error for PoolError
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()
impl StructuralPartialEq for PoolError
Auto Trait Implementations§
impl Forget for PoolError
impl Freeze for PoolError
impl Move for PoolError
impl RefUnwindSafe for PoolError
impl Send for PoolError
impl Sync for PoolError
impl Unpin for PoolError
impl UnsafeUnpin for PoolError
impl UnwindSafe for PoolError
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