pub enum NotifierError {
InvalidUrl {
url: String,
message: String,
},
UnsupportedUrlScheme {
scheme: String,
},
InvalidHeaderName {
header: String,
message: String,
},
InvalidHeaderValue {
header: String,
message: String,
},
ReservedHeader {
header: String,
},
InvalidSecret {
provider: &'static str,
message: String,
},
HttpRequest {
provider: &'static str,
message: String,
},
Transport {
provider: &'static str,
message: String,
},
HttpStatus {
provider: &'static str,
status: u16,
},
ProviderRejected {
provider: &'static str,
code: String,
message: String,
},
InvalidMessage {
provider: &'static str,
message: String,
},
ResponseDecode {
provider: &'static str,
message: String,
},
}Variants§
InvalidUrl
UnsupportedUrlScheme
InvalidHeaderName
InvalidHeaderValue
ReservedHeader
InvalidSecret
HttpRequest
Transport
HttpStatus
ProviderRejected
InvalidMessage
ResponseDecode
Trait Implementations§
Source§impl Clone for NotifierError
impl Clone for NotifierError
Source§fn clone(&self) -> NotifierError
fn clone(&self) -> NotifierError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NotifierError
impl Debug for NotifierError
Source§impl Display for NotifierError
impl Display for NotifierError
impl Eq for NotifierError
Source§impl Error for NotifierError
impl Error for NotifierError
1.30.0 · 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 PartialEq for NotifierError
impl PartialEq for NotifierError
impl StructuralPartialEq for NotifierError
Auto Trait Implementations§
impl Freeze for NotifierError
impl RefUnwindSafe for NotifierError
impl Send for NotifierError
impl Sync for NotifierError
impl Unpin for NotifierError
impl UnsafeUnpin for NotifierError
impl UnwindSafe for NotifierError
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