pub struct ErrorCode(pub u16);Expand description
Stable numeric error codes for programmatic error handling.
Tuple Fields§
§0: u16Implementations§
Source§impl ErrorCode
impl ErrorCode
pub const CONSTRAINT_VIOLATION: Self
pub const WRITE_CONFLICT: Self
pub const DEADLINE_EXCEEDED: Self
pub const PREVALIDATION_REJECTED: Self
pub const APPEND_ONLY_VIOLATION: Self
pub const BALANCE_VIOLATION: Self
pub const PERIOD_LOCKED: Self
pub const STATE_TRANSITION_VIOLATION: Self
pub const TRANSITION_CHECK_VIOLATION: Self
pub const RETENTION_VIOLATION: Self
pub const LEGAL_HOLD_ACTIVE: Self
pub const TYPE_MISMATCH: Self
pub const OVERFLOW: Self
pub const INSUFFICIENT_BALANCE: Self
pub const RATE_EXCEEDED: Self
pub const TYPE_GUARD_VIOLATION: Self
pub const COLLECTION_NOT_FOUND: Self
pub const DOCUMENT_NOT_FOUND: Self
pub const PLAN_ERROR: Self
pub const FAN_OUT_EXCEEDED: Self
pub const SQL_NOT_ENABLED: Self
pub const AUTHORIZATION_DENIED: Self
pub const AUTH_EXPIRED: Self
pub const SYNC_CONNECTION_FAILED: Self
pub const SYNC_DELTA_REJECTED: Self
pub const SHAPE_SUBSCRIPTION_FAILED: Self
pub const STORAGE: Self
pub const SEGMENT_CORRUPTED: Self
pub const COLD_STORAGE: Self
pub const WAL: Self
pub const SERIALIZATION: Self
pub const CODEC: Self
pub const CONFIG: Self
pub const BAD_REQUEST: Self
pub const NO_LEADER: Self
pub const NOT_LEADER: Self
pub const MIGRATION_IN_PROGRESS: Self
pub const NODE_UNREACHABLE: Self
pub const CLUSTER: Self
pub const MEMORY_EXHAUSTED: Self
pub const ENCRYPTION: Self
pub const INTERNAL: Self
pub const BRIDGE: Self
pub const DISPATCH: Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ErrorCode
impl<'de> Deserialize<'de> for ErrorCode
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
impl Copy for ErrorCode
impl Eq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnsafeUnpin for ErrorCode
impl UnwindSafe for ErrorCode
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Returns whether the given value has been niched. Read more
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
Writes data to
out indicating that a T is niched.