pub enum ErrorOrigin {
Cursor,
Executor,
Identity,
Index,
Interface,
Planner,
Query,
Recovery,
Response,
Runtime,
Serialize,
Store,
}Expand description
ErrorOrigin
Subsystem that owns the diagnostic.
Variants§
Implementations§
Source§impl ErrorOrigin
impl ErrorOrigin
Sourcepub const fn wire_code(self) -> u8
pub const fn wire_code(self) -> u8
Return the compact public wire code for this diagnostic origin.
Sourcepub const fn from_known_wire_code(code: u8) -> Option<Self>
pub const fn from_known_wire_code(code: u8) -> Option<Self>
Recover a known diagnostic origin from its compact public wire code.
Sourcepub const fn from_wire_code(code: u8) -> Self
pub const fn from_wire_code(code: u8) -> Self
Recover a diagnostic origin from its compact public wire code.
Unknown origin codes fail closed to Runtime, matching the public
boundary behavior used by the Candid facade.
Trait Implementations§
Source§impl Clone for ErrorOrigin
impl Clone for ErrorOrigin
Source§fn clone(&self) -> ErrorOrigin
fn clone(&self) -> ErrorOrigin
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 moreimpl Copy for ErrorOrigin
Source§impl Debug for ErrorOrigin
impl Debug for ErrorOrigin
impl Eq for ErrorOrigin
Source§impl Hash for ErrorOrigin
impl Hash for ErrorOrigin
Source§impl PartialEq for ErrorOrigin
impl PartialEq for ErrorOrigin
Source§fn eq(&self, other: &ErrorOrigin) -> bool
fn eq(&self, other: &ErrorOrigin) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ErrorOrigin
Auto Trait Implementations§
impl Freeze for ErrorOrigin
impl RefUnwindSafe for ErrorOrigin
impl Send for ErrorOrigin
impl Sync for ErrorOrigin
impl Unpin for ErrorOrigin
impl UnsafeUnpin for ErrorOrigin
impl UnwindSafe for ErrorOrigin
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