pub enum IconError {
#[non_exhaustive] NotFound,
#[non_exhaustive] Surface(Error),
}Expand description
An error retrieving an icon.
Variants§
#[non_exhaustive]NotFound
The icon was not found.
#[non_exhaustive]Surface(Error)
An error occurred inside the Cairo surface.
Trait Implementations§
Source§impl Error for IconError
impl Error for IconError
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 IconError
impl RefUnwindSafe for IconError
impl Send for IconError
impl Sync for IconError
impl Unpin for IconError
impl UnsafeUnpin for IconError
impl UnwindSafe for IconError
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