pub enum DeribitError {
Connection(String),
Authentication(String),
Api {
code: i32,
message: String,
},
Serialization(String),
Timeout,
InvalidConfig(String),
Other(String),
}Expand description
Common error type for all Deribit clients
Variants§
Connection(String)
Connection error
Authentication(String)
Authentication error
Api
API error with code and message
Serialization(String)
Serialization/deserialization error
Timeout
Network timeout
InvalidConfig(String)
Invalid configuration
Other(String)
Generic error
Trait Implementations§
Source§impl Clone for DeribitError
impl Clone for DeribitError
Source§fn clone(&self) -> DeribitError
fn clone(&self) -> DeribitError
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 DeribitError
impl Debug for DeribitError
Source§impl Display for DeribitError
impl Display for DeribitError
Source§impl Error for DeribitError
impl Error for DeribitError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for DeribitError
impl RefUnwindSafe for DeribitError
impl Send for DeribitError
impl Sync for DeribitError
impl Unpin for DeribitError
impl UnwindSafe for DeribitError
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