pub enum Error {
Show 20 variants
ReqError(Error),
InvalidHeaderError(InvalidHeaderValue),
IoError(Error),
ParseFloatError(ParseFloatError),
UrlParserError(ParseError),
Json(Error),
Qs(Error),
Tungstenite(Error),
TimestampError(SystemTimeError),
UTF8Err(Utf8Error),
BinanceError {
response: BinanceContentError,
},
InvalidListenKey(String),
UnknownSymbol(String),
InvalidOrderError {
msg: String,
},
InvalidPrice,
InvalidPeriod(String),
InternalServerError,
ServiceUnavailable,
Unauthorized,
Msg(String),
}
Expand description
First errors are technical errors All unhandled binance content errors are BinanceError The rest are binance content errors that are properly handled Unhandled binance errors are Msg
Variants§
ReqError(Error)
InvalidHeaderError(InvalidHeaderValue)
IoError(Error)
ParseFloatError(ParseFloatError)
UrlParserError(ParseError)
Json(Error)
Qs(Error)
Tungstenite(Error)
TimestampError(SystemTimeError)
UTF8Err(Utf8Error)
BinanceError
Fields
§
response: BinanceContentError
InvalidListenKey(String)
UnknownSymbol(String)
InvalidOrderError
InvalidPrice
InvalidPeriod(String)
InternalServerError
Msg(String)
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<BinanceContentError> for Error
impl From<BinanceContentError> for Error
source§fn from(source: BinanceContentError) -> Self
fn from(source: BinanceContentError) -> Self
Converts to this type from the input type.
source§impl From<InvalidHeaderValue> for Error
impl From<InvalidHeaderValue> for Error
source§fn from(source: InvalidHeaderValue) -> Self
fn from(source: InvalidHeaderValue) -> Self
Converts to this type from the input type.
source§impl From<ParseError> for Error
impl From<ParseError> for Error
source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
source§impl From<ParseFloatError> for Error
impl From<ParseFloatError> for Error
source§fn from(source: ParseFloatError) -> Self
fn from(source: ParseFloatError) -> Self
Converts to this type from the input type.
source§impl From<SystemTimeError> for Error
impl From<SystemTimeError> for Error
source§fn from(source: SystemTimeError) -> Self
fn from(source: SystemTimeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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