pub enum NotifierError {
MissingRecipient,
MissingBody,
UnsupportedChannel {
channel: String,
},
Transport {
message: String,
},
}Expand description
Failure while building or sending a notification.
Variants§
MissingRecipient
Recipient is empty.
MissingBody
Message body is empty.
UnsupportedChannel
Transport does not support this channel.
Transport
Transport backend failed.
Trait Implementations§
Source§impl Clone for NotifierError
impl Clone for NotifierError
Source§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 Forget for NotifierError
impl Freeze for NotifierError
impl Move 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