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