#[non_exhaustive]pub enum EmergencyError {
EmptyCode {
index: usize,
},
EmptySystem {
index: usize,
},
}Expand description
Why a set of emergency purposes cannot be declared.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for EmergencyError
impl Clone for EmergencyError
Source§impl Debug for EmergencyError
impl Debug for EmergencyError
Source§impl Display for EmergencyError
impl Display for EmergencyError
impl Eq for EmergencyError
Source§impl Error for EmergencyError
impl Error for EmergencyError
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 EmergencyError
impl PartialEq for EmergencyError
impl StructuralPartialEq for EmergencyError
Auto Trait Implementations§
impl Freeze for EmergencyError
impl RefUnwindSafe for EmergencyError
impl Send for EmergencyError
impl Sync for EmergencyError
impl Unpin for EmergencyError
impl UnsafeUnpin for EmergencyError
impl UnwindSafe for EmergencyError
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