pub enum InstancePoolError {
PoolFull {
capacity: u32,
in_use: u32,
},
Hal(HalError),
}Expand description
What an InstancePool refuses to do.
Variants§
PoolFull
Every slot is in use.
in_use is normally the number of live instances. It can exceed that
only through generation exhaustion — see Pool’s docs on retired
slots, which needs about 4.3 billion removals of one slot — and the two
are reported together so that case is legible rather than baffling.
Hal(HalError)
Anything the seam refused.
Trait Implementations§
Source§impl Debug for InstancePoolError
impl Debug for InstancePoolError
Source§impl Display for InstancePoolError
impl Display for InstancePoolError
Source§impl Error for InstancePoolError
impl Error for InstancePoolError
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 From<HalError> for InstancePoolError
impl From<HalError> for InstancePoolError
Source§impl From<InstancePoolError> for HalError
Flattens a pool error into the seam’s, for callers whose constructors are
already Result<_, HalError>.
impl From<InstancePoolError> for HalError
Flattens a pool error into the seam’s, for callers whose constructors are
already Result<_, HalError>.
Same shape and same reason as crate::mesh_pool::MeshPoolError’s: the seam
has no vocabulary for “this pool is full”, so everything that is not already
a HalError arrives as Backend, which renders
verbatim and keeps the numbers.
Source§fn from(error: InstancePoolError) -> Self
fn from(error: InstancePoolError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InstancePoolError
impl RefUnwindSafe for InstancePoolError
impl Send for InstancePoolError
impl Sync for InstancePoolError
impl Unpin for InstancePoolError
impl UnsafeUnpin for InstancePoolError
impl UnwindSafe for InstancePoolError
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