pub enum GlibNoneOrInvalidError<I: Error> {
Invalid(I),
None,
}
Expand description
Error type for TryFromGlib
when the Glib value can be None or invalid.
Variants§
Implementations§
Trait Implementations§
Source§impl<I: Error> Display for GlibNoneOrInvalidError<I>
impl<I: Error> Display for GlibNoneOrInvalidError<I>
Source§impl<I: Error> Error for GlibNoneOrInvalidError<I>
impl<I: Error> Error for GlibNoneOrInvalidError<I>
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<I: Error> From<I> for GlibNoneOrInvalidError<I>
impl<I: Error> From<I> for GlibNoneOrInvalidError<I>
impl<I: Eq + Error> Eq for GlibNoneOrInvalidError<I>
impl<I: Error> StructuralPartialEq for GlibNoneOrInvalidError<I>
Auto Trait Implementations§
impl<I> Freeze for GlibNoneOrInvalidError<I>where
I: Freeze,
impl<I> RefUnwindSafe for GlibNoneOrInvalidError<I>where
I: RefUnwindSafe,
impl<I> Send for GlibNoneOrInvalidError<I>where
I: Send,
impl<I> Sync for GlibNoneOrInvalidError<I>where
I: Sync,
impl<I> Unpin for GlibNoneOrInvalidError<I>where
I: Unpin,
impl<I> UnwindSafe for GlibNoneOrInvalidError<I>where
I: UnwindSafe,
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