pub enum InitError<E> {
PlatformError(PlatformError),
CallbackError(E),
}
Variants§
PlatformError(PlatformError)
CallbackError(E)
Trait Implementations§
Source§impl<E> Error for InitError<E>
impl<E> Error for InitError<E>
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<E> From<PlatformError> for InitError<E>
impl<E> From<PlatformError> for InitError<E>
Source§fn from(source: PlatformError) -> Self
fn from(source: PlatformError) -> Self
Converts to this type from the input type.
Source§impl Into<PlatformError> for InitError<Infallible>
impl Into<PlatformError> for InitError<Infallible>
Source§fn into(self) -> PlatformError
fn into(self) -> PlatformError
Converts this type into the (usually inferred) input type.
Auto Trait Implementations§
impl<E> !Freeze for InitError<E>
impl<E> !RefUnwindSafe for InitError<E>
impl<E> !Send for InitError<E>
impl<E> !Sync for InitError<E>
impl<E> Unpin for InitError<E>where
E: Unpin,
impl<E> !UnwindSafe for InitError<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