#[non_exhaustive]pub enum CoreErrorCode {
InvalidId,
InvalidTick,
InvalidSequence,
ChannelClosed,
ChannelFull,
ChannelEmpty,
Unsupported,
Internal,
}Expand description
Stable error codes for daedalus-core.
use daedalus_core::errors::CoreErrorCode;
let code = CoreErrorCode::InvalidId;
assert_eq!(format!("{code:?}"), "InvalidId");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 CoreErrorCode
impl Clone for CoreErrorCode
Source§fn clone(&self) -> CoreErrorCode
fn clone(&self) -> CoreErrorCode
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 CoreErrorCode
impl Debug for CoreErrorCode
Source§impl<'de> Deserialize<'de> for CoreErrorCode
impl<'de> Deserialize<'de> for CoreErrorCode
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 Hash for CoreErrorCode
impl Hash for CoreErrorCode
Source§impl PartialEq for CoreErrorCode
impl PartialEq for CoreErrorCode
Source§impl Serialize for CoreErrorCode
impl Serialize for CoreErrorCode
impl Copy for CoreErrorCode
impl Eq for CoreErrorCode
impl StructuralPartialEq for CoreErrorCode
Auto Trait Implementations§
impl Freeze for CoreErrorCode
impl RefUnwindSafe for CoreErrorCode
impl Send for CoreErrorCode
impl Sync for CoreErrorCode
impl Unpin for CoreErrorCode
impl UnwindSafe for CoreErrorCode
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