pub enum FetchOrderBookError {
UserInput(UserInputError),
RateLimit(RateLimitError),
RequestRejected(RequestRejectedError),
Transport(TransportError),
UnexpectedResponse(UnexpectedResponseError),
}Variants§
UserInput(UserInputError)
RateLimit(RateLimitError)
RequestRejected(RequestRejectedError)
Transport(TransportError)
UnexpectedResponse(UnexpectedResponseError)
Implementations§
Trait Implementations§
Source§impl Clone for FetchOrderBookError
impl Clone for FetchOrderBookError
Source§fn clone(&self) -> FetchOrderBookError
fn clone(&self) -> FetchOrderBookError
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 FetchOrderBookError
impl Debug for FetchOrderBookError
Source§impl Display for FetchOrderBookError
impl Display for FetchOrderBookError
Source§impl Error for FetchOrderBookError
impl Error for FetchOrderBookError
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()
Source§impl From<FetchOrderBookError> for Error
impl From<FetchOrderBookError> for Error
Source§fn from(source: FetchOrderBookError) -> Self
fn from(source: FetchOrderBookError) -> Self
Converts to this type from the input type.
Source§impl From<RateLimitError> for FetchOrderBookError
impl From<RateLimitError> for FetchOrderBookError
Source§fn from(source: RateLimitError) -> Self
fn from(source: RateLimitError) -> Self
Converts to this type from the input type.
Source§impl From<RequestRejectedError> for FetchOrderBookError
impl From<RequestRejectedError> for FetchOrderBookError
Source§fn from(source: RequestRejectedError) -> Self
fn from(source: RequestRejectedError) -> Self
Converts to this type from the input type.
Source§impl From<TransportError> for FetchOrderBookError
impl From<TransportError> for FetchOrderBookError
Source§fn from(source: TransportError) -> Self
fn from(source: TransportError) -> Self
Converts to this type from the input type.
Source§impl From<UnexpectedResponseError> for FetchOrderBookError
impl From<UnexpectedResponseError> for FetchOrderBookError
Source§fn from(source: UnexpectedResponseError) -> Self
fn from(source: UnexpectedResponseError) -> Self
Converts to this type from the input type.
Source§impl From<UserInputError> for FetchOrderBookError
impl From<UserInputError> for FetchOrderBookError
Source§fn from(source: UserInputError) -> Self
fn from(source: UserInputError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FetchOrderBookError
impl RefUnwindSafe for FetchOrderBookError
impl Send for FetchOrderBookError
impl Sync for FetchOrderBookError
impl Unpin for FetchOrderBookError
impl UnsafeUnpin for FetchOrderBookError
impl UnwindSafe for FetchOrderBookError
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