pub enum DrawingAreaErrorKind<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§
Source§impl<E: Error + Send + Sync> Error for DrawingAreaErrorKind<E>
impl<E: Error + Send + Sync> Error for DrawingAreaErrorKind<E>
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()
Auto Trait Implementations§
impl<E> Freeze for DrawingAreaErrorKind<E>where
E: Freeze,
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§
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