pub enum ErrorOrigin {
Node,
Peer,
Upstream,
Onion,
Control,
}Expand description
The subsystem a failure arose in — carried in data.origin so a client can
route the error (retry upstream, rebuild a circuit, re-auth the control
plane) without parsing the message.
Variants§
Node
The node’s own read/serve path.
Peer
The peer-network layer (discovery / availability / range serving).
Upstream
An upstream fetch (rpc.dig.net proxy / whole-store sync).
Onion
The onion (private-retrieval) layer.
Control
The loopback control plane.
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
Source§impl<'de> Deserialize<'de> for ErrorOrigin
impl<'de> Deserialize<'de> for ErrorOrigin
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 Eq for ErrorOrigin
Source§impl Hash for ErrorOrigin
impl Hash for ErrorOrigin
Source§impl PartialEq for ErrorOrigin
impl PartialEq for ErrorOrigin
Source§impl Serialize for ErrorOrigin
impl Serialize for ErrorOrigin
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