Enum autopush_common::errors::ApcErrorKind
source · pub enum ApcErrorKind {
Io(Error),
UuidError(Error),
ParseIntError(ParseIntError),
ParseUrlError(ParseError),
ConfigError(ConfigError),
BroadcastError(String),
PayloadError(String),
GeneralError(String),
}
Variants§
Io(Error)
UuidError(Error)
ParseIntError(ParseIntError)
ParseUrlError(ParseError)
ConfigError(ConfigError)
BroadcastError(String)
PayloadError(String)
GeneralError(String)
Implementations§
source§impl ApcErrorKind
impl ApcErrorKind
sourcepub fn status(&self) -> StatusCode
pub fn status(&self) -> StatusCode
Get the associated HTTP status code
pub fn is_sentry_event(&self) -> bool
pub fn metric_label(&self) -> Option<&'static str>
Trait Implementations§
source§impl Debug for ApcErrorKind
impl Debug for ApcErrorKind
source§impl Display for ApcErrorKind
impl Display for ApcErrorKind
source§impl Error for ApcErrorKind
impl Error for ApcErrorKind
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<ConfigError> for ApcErrorKind
impl From<ConfigError> for ApcErrorKind
source§impl From<Error> for ApcErrorKind
impl From<Error> for ApcErrorKind
source§impl From<Error> for ApcErrorKind
impl From<Error> for ApcErrorKind
source§impl From<ParseError> for ApcErrorKind
impl From<ParseError> for ApcErrorKind
source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
source§impl From<ParseIntError> for ApcErrorKind
impl From<ParseIntError> for ApcErrorKind
source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ApcErrorKind
impl !RefUnwindSafe for ApcErrorKind
impl Send for ApcErrorKind
impl Sync for ApcErrorKind
impl Unpin for ApcErrorKind
impl !UnwindSafe for ApcErrorKind
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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