pub enum OsuError {
ApprovalStatusParsing(i8),
BuildingClient(Error),
ChunkingResponse(Error),
GradeParsing,
InvalidMultiplayerMatch,
ModParsing(ModError),
Parsing {
body: String,
source: Error,
},
RequestError(Error),
Response {
body: String,
error: ApiError,
status: StatusCode,
},
ServiceUnavailable(Option<String>),
}Expand description
Main error enum
Variants§
ApprovalStatusParsing(i8)
BuildingClient(Error)
ChunkingResponse(Error)
GradeParsing
InvalidMultiplayerMatch
ModParsing(ModError)
Parsing
RequestError(Error)
Response
Trait Implementations§
Source§impl Error for OsuError
impl Error for OsuError
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 OsuError
impl !RefUnwindSafe for OsuError
impl Send for OsuError
impl Sync for OsuError
impl Unpin for OsuError
impl !UnwindSafe for OsuError
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