pub enum InstanceError {
DimensionMismatch {
requested: (usize, usize),
existing: (usize, usize),
},
ConfigMismatch {
requested: (usize, usize),
existing: (usize, usize),
},
}Expand description
Errors related to Espresso instance management
These errors occur when trying to create or use Espresso instances with conflicting dimensions or configurations on the same thread.
Variants§
DimensionMismatch
The requested dimensions don’t match the existing thread-local instance
Fields
ConfigMismatch
The requested configuration doesn’t match the existing thread-local instance
Trait Implementations§
Source§impl Clone for InstanceError
impl Clone for InstanceError
Source§fn clone(&self) -> InstanceError
fn clone(&self) -> InstanceError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InstanceError
impl Debug for InstanceError
Source§impl Display for InstanceError
impl Display for InstanceError
Source§impl Error for InstanceError
impl Error for InstanceError
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 From<InstanceError> for Error
impl From<InstanceError> for Error
Source§fn from(err: InstanceError) -> Self
fn from(err: InstanceError) -> Self
Converts to this type from the input type.
Source§impl From<InstanceError> for MinimizationError
impl From<InstanceError> for MinimizationError
Source§fn from(err: InstanceError) -> Self
fn from(err: InstanceError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for InstanceError
impl PartialEq for InstanceError
impl Eq for InstanceError
impl StructuralPartialEq for InstanceError
Auto Trait Implementations§
impl Freeze for InstanceError
impl RefUnwindSafe for InstanceError
impl Send for InstanceError
impl Sync for InstanceError
impl Unpin for InstanceError
impl UnwindSafe for InstanceError
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