pub enum UpstreamErrorKind {
Api {
code: Option<i64>,
message: String,
},
Network {
message: String,
},
Http {
message: String,
},
Websocket {
message: String,
},
Fix {
kind: FixErrorKind,
message: String,
},
}Expand description
Structured upstream-error payload. Closed set.
Variants§
Api
Deribit JSON-RPC API error: a non-rate-limit, non-auth failure
returned with a code + message body.
Fields
Network
Network-layer error (connect, TLS, DNS, …).
Http
HTTP transport error that doesn’t fit the structured shapes above (e.g. invalid response, parse).
Websocket
WebSocket transport error.
Fix
FIX 4.4 transport error (v0.6+).
Surfaces FIX-side failures classified by FixErrorKind. The
adapter maps every deribit_fix::DeribitFixError variant into
one of those structured kinds via an exhaustive match —
adding a new upstream variant fails to compile until the
mapping is revisited.
Fields
§
kind: FixErrorKindClosed-set classification of the FIX failure.
Trait Implementations§
Source§impl Clone for UpstreamErrorKind
impl Clone for UpstreamErrorKind
Source§fn clone(&self) -> UpstreamErrorKind
fn clone(&self) -> UpstreamErrorKind
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 UpstreamErrorKind
impl Debug for UpstreamErrorKind
Source§impl<'de> Deserialize<'de> for UpstreamErrorKind
impl<'de> Deserialize<'de> for UpstreamErrorKind
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 UpstreamErrorKind
impl PartialEq for UpstreamErrorKind
Source§fn eq(&self, other: &UpstreamErrorKind) -> bool
fn eq(&self, other: &UpstreamErrorKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for UpstreamErrorKind
impl Serialize for UpstreamErrorKind
impl Eq for UpstreamErrorKind
impl StructuralPartialEq for UpstreamErrorKind
Auto Trait Implementations§
impl Freeze for UpstreamErrorKind
impl RefUnwindSafe for UpstreamErrorKind
impl Send for UpstreamErrorKind
impl Sync for UpstreamErrorKind
impl Unpin for UpstreamErrorKind
impl UnsafeUnpin for UpstreamErrorKind
impl UnwindSafe for UpstreamErrorKind
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
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.