pub enum NotifyError {
IO(Error),
MissingVar(&'static str),
InvalidVar(&'static str, String),
}
Expand description
Error returned when sending a notification didn’t work
Variants§
IO(Error)
An IO error occurred while sending the notification
MissingVar(&'static str)
A required environment variable was missing
InvalidVar(&'static str, String)
An environment variable had an invalid value
Trait Implementations§
Source§impl Debug for NotifyError
impl Debug for NotifyError
Source§impl Display for NotifyError
impl Display for NotifyError
Source§impl Error for NotifyError
impl Error for NotifyError
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<Error> for NotifyError
impl From<Error> for NotifyError
Source§impl From<SocketError> for NotifyError
impl From<SocketError> for NotifyError
Source§fn from(value: SocketError) -> Self
fn from(value: SocketError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NotifyError
impl !RefUnwindSafe for NotifyError
impl Send for NotifyError
impl Sync for NotifyError
impl Unpin for NotifyError
impl !UnwindSafe for NotifyError
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