#[non_exhaustive]pub enum MainThreadError {
Panicked(String),
Dropped,
}Expand description
Why an OnMainThread has no value.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Panicked(String)
The function panicked, with this message.
Dropped
The function never ran: its surface went away first.
Trait Implementations§
Source§impl Clone for MainThreadError
impl Clone for MainThreadError
Source§impl Debug for MainThreadError
impl Debug for MainThreadError
Source§impl Display for MainThreadError
impl Display for MainThreadError
impl Eq for MainThreadError
Source§impl Error for MainThreadError
impl Error for MainThreadError
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 PartialEq for MainThreadError
impl PartialEq for MainThreadError
impl StructuralPartialEq for MainThreadError
Auto Trait Implementations§
impl Forget for MainThreadError
impl Freeze for MainThreadError
impl Move for MainThreadError
impl RefUnwindSafe for MainThreadError
impl Send for MainThreadErrorwhere
RawVecInner: Send,
impl Sync for MainThreadErrorwhere
RawVecInner: Sync,
impl Unpin for MainThreadError
impl UnsafeUnpin for MainThreadError
impl UnwindSafe for MainThreadErrorwhere
RawVecInner: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<E> IntoThrown for Ewhere
E: Display,
impl<E> IntoThrown for Ewhere
E: Display,
Source§fn into_thrown(self) -> Thrown
fn into_thrown(self) -> Thrown
The exception.