pub enum FcmError {
FileReadError(Error),
JsonParseError(Error),
JwtEncodeError(Error),
HttpError(Error),
AccessTokenNotFound,
NotificationError(String),
}Expand description
Represents errors that can occur while using the FcmNotification.
This enum provides a unified error type for all operations, including file I/O, JSON parsing, JWT encoding, HTTP requests, and FCM-specific errors.
Variants§
FileReadError(Error)
JsonParseError(Error)
JwtEncodeError(Error)
HttpError(Error)
AccessTokenNotFound
NotificationError(String)
Trait Implementations§
Source§impl Error for FcmError
impl Error for FcmError
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 !RefUnwindSafe for FcmError
impl !UnwindSafe for FcmError
impl Freeze for FcmError
impl Send for FcmError
impl Sync for FcmError
impl Unpin for FcmError
impl UnsafeUnpin for FcmError
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