pub enum MessagingError {
Core(CoreError),
Http(Error),
Api {
status: u16,
message: String,
error_code: Option<String>,
},
BatchTooLarge {
actual: usize,
max: usize,
},
}Expand description
The top-level error type for all messaging module operations.
Variants§
Core(CoreError)
A lower-level, service-independent error occurred.
Http(Error)
The underlying HTTP request failed.
Api
The FCM v1 API returned an error response.
Fields
BatchTooLarge
More than crate::messaging::MAX_BATCH_SIZE messages/tokens were
passed to a batch operation
(crate::messaging::MessagingClient::send_each or
crate::messaging::MessagingClient::send_each_for_multicast).
Trait Implementations§
Source§impl Debug for MessagingError
impl Debug for MessagingError
Source§impl Display for MessagingError
impl Display for MessagingError
Source§impl Error for MessagingError
impl Error for MessagingError
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<CoreError> for MessagingError
impl From<CoreError> for MessagingError
Source§impl From<Error> for MessagingError
impl From<Error> for MessagingError
Source§impl From<MessagingError> for Error
impl From<MessagingError> for Error
Source§fn from(source: MessagingError) -> Self
fn from(source: MessagingError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for MessagingError
impl !UnwindSafe for MessagingError
impl Freeze for MessagingError
impl Send for MessagingError
impl Sync for MessagingError
impl Unpin for MessagingError
impl UnsafeUnpin for MessagingError
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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