#[non_exhaustive]pub enum SetFallbackRuntimeError {
AlreadySet,
BuildFailed(Error),
SpawnFailed(Error),
}Expand description
The error returned by set_fallback_runtime().
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.
AlreadySet
A fallback runtime has already been set or created.
BuildFailed(Error)
The runtime could not be built.
SpawnFailed(Error)
The thread that drives a current-thread runtime could not be spawned.
Trait Implementations§
Source§impl Debug for SetFallbackRuntimeError
impl Debug for SetFallbackRuntimeError
Source§impl Display for SetFallbackRuntimeError
impl Display for SetFallbackRuntimeError
Source§impl Error for SetFallbackRuntimeError
impl Error for SetFallbackRuntimeError
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 !RefUnwindSafe for SetFallbackRuntimeError
impl !UnwindSafe for SetFallbackRuntimeError
impl Forget for SetFallbackRuntimeError
impl Freeze for SetFallbackRuntimeError
impl Move for SetFallbackRuntimeError
impl Send for SetFallbackRuntimeError
impl Sync for SetFallbackRuntimeError
impl Unpin for SetFallbackRuntimeError
impl UnsafeUnpin for SetFallbackRuntimeError
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