pub enum PushOptionsError {
Configuration(ValidationErrors),
InvalidEndpoint(String),
EmptyAccessToken,
InvalidBatchSize(usize),
ZeroRequestTimeout,
}Expand description
Invalid push adapter configuration.
Variants§
Configuration(ValidationErrors)
Shared configuration invariants were violated.
InvalidEndpoint(String)
The endpoint is not an absolute HTTP URL ending in /send.
EmptyAccessToken
The access token was set to an empty value.
InvalidBatchSize(usize)
The batch size is outside the provider’s accepted range.
ZeroRequestTimeout
The request timeout is zero.
Trait Implementations§
Source§impl Debug for PushOptionsError
impl Debug for PushOptionsError
Source§impl Display for PushOptionsError
impl Display for PushOptionsError
Source§impl Error for PushOptionsError
impl Error for PushOptionsError
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<ValidationErrors> for PushOptionsError
impl From<ValidationErrors> for PushOptionsError
Source§fn from(source: ValidationErrors) -> Self
fn from(source: ValidationErrors) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PushOptionsError
impl RefUnwindSafe for PushOptionsError
impl Send for PushOptionsError
impl Sync for PushOptionsError
impl Unpin for PushOptionsError
impl UnsafeUnpin for PushOptionsError
impl UnwindSafe for PushOptionsError
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