pub enum OpenLimitsError {
Show 26 variants
Generic(Box<dyn Error + Send + Sync>),
NoMarketPair,
MissingImplementation(MissingImplementationContent),
AssetNotFound(),
NoApiKeySet(),
InternalServerError(),
ServiceUnavailable(),
Unauthorized(),
SymbolNotFound(),
SocketError(),
WebSocketMessageNotSupported(),
GetTimestampFailed(),
ReqError(Error),
InvalidHeaderError(InvalidHeaderValue),
InvalidPayloadSignature(Error),
IoError(Error),
PoisonError(),
JsonError(Error),
ParseFloatError(ParseFloatError),
UrlParserError(ParseError),
Tungstenite(Error),
TimestampError(SystemTimeError),
UnkownResponse(String),
NotParsableResponse(String),
MissingParameter(String),
InvalidParameter(String),
}Variants§
Generic(Box<dyn Error + Send + Sync>)
NoMarketPair
MissingImplementation(MissingImplementationContent)
AssetNotFound()
NoApiKeySet()
InternalServerError()
SymbolNotFound()
SocketError()
WebSocketMessageNotSupported()
GetTimestampFailed()
ReqError(Error)
InvalidHeaderError(InvalidHeaderValue)
InvalidPayloadSignature(Error)
IoError(Error)
PoisonError()
JsonError(Error)
ParseFloatError(ParseFloatError)
UrlParserError(ParseError)
Tungstenite(Error)
TimestampError(SystemTimeError)
UnkownResponse(String)
NotParsableResponse(String)
MissingParameter(String)
InvalidParameter(String)
Trait Implementations§
Source§impl Debug for OpenLimitsError
impl Debug for OpenLimitsError
Source§impl Display for OpenLimitsError
impl Display for OpenLimitsError
Source§impl Error for OpenLimitsError
impl Error for OpenLimitsError
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<Error> for OpenLimitsError
impl From<Error> for OpenLimitsError
Source§impl From<Error> for OpenLimitsError
impl From<Error> for OpenLimitsError
Source§impl From<Error> for OpenLimitsError
impl From<Error> for OpenLimitsError
Source§impl From<Error> for OpenLimitsError
impl From<Error> for OpenLimitsError
Source§impl From<Error> for OpenLimitsError
impl From<Error> for OpenLimitsError
Source§impl From<InvalidHeaderValue> for OpenLimitsError
impl From<InvalidHeaderValue> for OpenLimitsError
Source§fn from(source: InvalidHeaderValue) -> Self
fn from(source: InvalidHeaderValue) -> Self
Converts to this type from the input type.
Source§impl From<MissingImplementationContent> for OpenLimitsError
impl From<MissingImplementationContent> for OpenLimitsError
Source§fn from(source: MissingImplementationContent) -> Self
fn from(source: MissingImplementationContent) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for OpenLimitsError
impl From<ParseError> for OpenLimitsError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<ParseFloatError> for OpenLimitsError
impl From<ParseFloatError> for OpenLimitsError
Source§fn from(source: ParseFloatError) -> Self
fn from(source: ParseFloatError) -> Self
Converts to this type from the input type.
Source§impl From<SystemTimeError> for OpenLimitsError
impl From<SystemTimeError> for OpenLimitsError
Source§fn from(source: SystemTimeError) -> Self
fn from(source: SystemTimeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OpenLimitsError
impl !RefUnwindSafe for OpenLimitsError
impl Send for OpenLimitsError
impl Sync for OpenLimitsError
impl Unpin for OpenLimitsError
impl !UnwindSafe for OpenLimitsError
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