pub enum MegaErrorKind {
Unknown(ErrorCode),
UnknownReqwest,
Building,
Connect,
Timeout,
Decode,
Server,
Rejection,
AtCapacity,
WrongMegaId,
RunnerUnreachable,
UnknownUser,
}Expand description
All variants of errors that the LSP can return.
Variants§
Unknown(ErrorCode)
Unknown error
UnknownReqwest
Unknown Reqwest client error
Building
Error building the HTTP request
Connect
Error connecting to a remote HTTP service
Timeout
Request timed out
Decode
Error decoding/deserializing the HTTP response body
Server
General server error
Rejection
Client provided a bad request that the server rejected
AtCapacity
Server is at capacity
WrongMegaId
Request mega_id doesn’t match current mega_id
RunnerUnreachable
Usernode runner is currently unreachable; try again later
UnknownUser
The requested user is not known to this meganode
Trait Implementations§
Source§impl ApiErrorKind for MegaErrorKind
impl ApiErrorKind for MegaErrorKind
Source§impl Clone for MegaErrorKind
impl Clone for MegaErrorKind
Source§fn clone(&self) -> MegaErrorKind
fn clone(&self) -> MegaErrorKind
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 MegaErrorKind
impl Debug for MegaErrorKind
Source§impl Default for MegaErrorKind
impl Default for MegaErrorKind
Source§impl Display for MegaErrorKind
impl Display for MegaErrorKind
Source§impl From<CommonErrorKind> for MegaErrorKind
impl From<CommonErrorKind> for MegaErrorKind
Source§fn from(common: CommonErrorKind) -> Self
fn from(common: CommonErrorKind) -> Self
Converts to this type from the input type.
Source§impl From<MegaErrorKind> for ErrorCode
impl From<MegaErrorKind> for ErrorCode
Source§fn from(val: MegaErrorKind) -> ErrorCode
fn from(val: MegaErrorKind) -> ErrorCode
Converts to this type from the input type.
Source§impl From<u16> for MegaErrorKind
impl From<u16> for MegaErrorKind
Source§impl Hash for MegaErrorKind
impl Hash for MegaErrorKind
Source§impl PartialEq for MegaErrorKind
impl PartialEq for MegaErrorKind
Source§impl ToHttpStatus for MegaErrorKind
impl ToHttpStatus for MegaErrorKind
fn to_http_status(&self) -> StatusCode
impl Copy for MegaErrorKind
impl Eq for MegaErrorKind
impl StructuralPartialEq for MegaErrorKind
Auto Trait Implementations§
impl Freeze for MegaErrorKind
impl RefUnwindSafe for MegaErrorKind
impl Send for MegaErrorKind
impl Sync for MegaErrorKind
impl Unpin for MegaErrorKind
impl UnsafeUnpin for MegaErrorKind
impl UnwindSafe for MegaErrorKind
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