pub enum RegisterErrorCode {
DuplicateCommand,
}Expand description
Error codes returned when registering a command fails.
Matches the TypeScript CommandRegisterErrorCode enum.
Variants§
DuplicateCommand
Trait Implementations§
Source§impl Clone for RegisterErrorCode
impl Clone for RegisterErrorCode
Source§fn clone(&self) -> RegisterErrorCode
fn clone(&self) -> RegisterErrorCode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RegisterErrorCode
impl Debug for RegisterErrorCode
Source§impl<'de> Deserialize<'de> for RegisterErrorCode
impl<'de> Deserialize<'de> for RegisterErrorCode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RegisterErrorCode
impl PartialEq for RegisterErrorCode
Source§fn eq(&self, other: &RegisterErrorCode) -> bool
fn eq(&self, other: &RegisterErrorCode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RegisterErrorCode
impl Serialize for RegisterErrorCode
impl Copy for RegisterErrorCode
impl Eq for RegisterErrorCode
impl StructuralPartialEq for RegisterErrorCode
Auto Trait Implementations§
impl Freeze for RegisterErrorCode
impl RefUnwindSafe for RegisterErrorCode
impl Send for RegisterErrorCode
impl Sync for RegisterErrorCode
impl Unpin for RegisterErrorCode
impl UnsafeUnpin for RegisterErrorCode
impl UnwindSafe for RegisterErrorCode
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