#[repr(u8)]pub enum TrapCategory {
MissingItemOrCommand = 0,
ArgumentValueFailure = 1,
CommandExecutionInterrupted = 2,
ScriptingFailure = 3,
GeneralFailure = 4,
APIFailure = 5,
TTYFailure = 6,
ReturnValue = 7,
}Expand description
Categories for TrapResponse, defining the nature of the trap.
Variants§
MissingItemOrCommand = 0
0 - missing item or command
ArgumentValueFailure = 1
1 - argument value failure
CommandExecutionInterrupted = 2
2 - execution of command interrupted
ScriptingFailure = 3
3 - scripting related failure
GeneralFailure = 4
4 - general failure
APIFailure = 5
5 - API related failure
TTYFailure = 6
6 - TTY related failure
ReturnValue = 7
7 - value generated with :return command
Trait Implementations§
Source§impl Clone for TrapCategory
impl Clone for TrapCategory
Source§fn clone(&self) -> TrapCategory
fn clone(&self) -> TrapCategory
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 TrapCategory
impl Debug for TrapCategory
Source§impl TryFrom<&str> for TrapCategory
impl TryFrom<&str> for TrapCategory
Auto Trait Implementations§
impl Freeze for TrapCategory
impl RefUnwindSafe for TrapCategory
impl Send for TrapCategory
impl Sync for TrapCategory
impl Unpin for TrapCategory
impl UnwindSafe for TrapCategory
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