pub enum DrawingAreaErrorKind<E>where
E: Error + Send + Sync,{
BackendError(DrawingErrorKind<E>),
SharingError,
LayoutError,
}
Expand description
The error description of any drawing area API
Variants
BackendError(DrawingErrorKind<E>)
The error is due to drawing backend failure
SharingError
We are not able to get the mutable reference of the backend, which indicates the drawing backend is current used by other drawing operation
LayoutError
The error caused by invalid layout
Trait Implementations
sourceimpl<E> Error for DrawingAreaErrorKind<E>where
E: Error + Send + Sync,
impl<E> Error for DrawingAreaErrorKind<E>where
E: Error + Send + Sync,
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations
impl<E> !RefUnwindSafe for DrawingAreaErrorKind<E>
impl<E> Send for DrawingAreaErrorKind<E>
impl<E> Sync for DrawingAreaErrorKind<E>
impl<E> Unpin for DrawingAreaErrorKind<E>where
E: Unpin,
impl<E> !UnwindSafe for DrawingAreaErrorKind<E>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more