pub enum LibnotifyError {
InitError,
NulError(NulError),
NewNotificationError,
GerrorError(String),
AllocationError,
}Expand description
Enum mapping every possible error that can happen in this lib, with a nice enum.
Variants§
InitError
Libnotify init failed
NulError(NulError)
&str contains a null terminator. Read more at std documentation
NewNotificationError
Libnotify notification constructor failed allocating
GerrorError(String)
Custom libnotify error with explanation.
AllocationError
Data failed allocating. Could indicate that system doesn’t have enough memory
Trait Implementations§
Source§impl Debug for LibnotifyError
impl Debug for LibnotifyError
Source§impl Display for LibnotifyError
impl Display for LibnotifyError
Source§impl Error for LibnotifyError
impl Error for LibnotifyError
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()
Auto Trait Implementations§
impl Freeze for LibnotifyError
impl RefUnwindSafe for LibnotifyError
impl Send for LibnotifyError
impl Sync for LibnotifyError
impl Unpin for LibnotifyError
impl UnsafeUnpin for LibnotifyError
impl UnwindSafe for LibnotifyError
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