Enum ravenlib::error::RavenServerErrorKind
source · pub enum RavenServerErrorKind {
Parse(Error),
Network(Error),
Msg(String),
PermissionDenied,
NotLoggedIn,
DoesNotExist(String),
ServerError(StatusCode),
TooLarge,
PreConditionFailed(String),
// some variants omitted
}
Expand description
The kind of an error.
Variants
Parse(Error)
Network(Error)
Msg(String)
A convenient variant for String.
PermissionDenied
NotLoggedIn
DoesNotExist(String)
ServerError(StatusCode)
TooLarge
PreConditionFailed(String)
Implementations
sourceimpl RavenServerErrorKind
impl RavenServerErrorKind
sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
A string describing the error kind.
Trait Implementations
sourceimpl Debug for RavenServerErrorKind
impl Debug for RavenServerErrorKind
sourceimpl Display for RavenServerErrorKind
impl Display for RavenServerErrorKind
sourceimpl<'a> From<&'a str> for RavenServerErrorKind
impl<'a> From<&'a str> for RavenServerErrorKind
sourceimpl From<RavenServerError> for RavenServerErrorKind
impl From<RavenServerError> for RavenServerErrorKind
sourcefn from(e: RavenServerError) -> Self
fn from(e: RavenServerError) -> Self
Converts to this type from the input type.
sourceimpl From<RavenServerErrorKind> for ErrorKind
impl From<RavenServerErrorKind> for ErrorKind
sourcefn from(e: RavenServerErrorKind) -> Self
fn from(e: RavenServerErrorKind) -> Self
Converts to this type from the input type.
sourceimpl From<RavenServerErrorKind> for RavenServerError
impl From<RavenServerErrorKind> for RavenServerError
sourcefn from(e: RavenServerErrorKind) -> Self
fn from(e: RavenServerErrorKind) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for RavenServerErrorKind
impl Send for RavenServerErrorKind
impl Sync for RavenServerErrorKind
impl Unpin for RavenServerErrorKind
impl !UnwindSafe for RavenServerErrorKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more