#[non_exhaustive]pub enum ContextBindingError {
Dropping,
NativeDestroyed,
}Expand description
Failure to enter a Context through a persistent binding capability.
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.
Dropping
Context teardown has started, so ordinary safe access is no longer permitted.
NativeDestroyed
The originating native Context no longer exists.
Trait Implementations§
Source§impl Clone for ContextBindingError
impl Clone for ContextBindingError
Source§fn clone(&self) -> ContextBindingError
fn clone(&self) -> ContextBindingError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ContextBindingError
Source§impl Debug for ContextBindingError
impl Debug for ContextBindingError
Source§impl Display for ContextBindingError
impl Display for ContextBindingError
impl Eq for ContextBindingError
Source§impl Error for ContextBindingError
impl Error for ContextBindingError
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 ContextBindingError
impl PartialEq for ContextBindingError
impl StructuralPartialEq for ContextBindingError
Auto Trait Implementations§
impl Freeze for ContextBindingError
impl RefUnwindSafe for ContextBindingError
impl Send for ContextBindingError
impl Sync for ContextBindingError
impl Unpin for ContextBindingError
impl UnsafeUnpin for ContextBindingError
impl UnwindSafe for ContextBindingError
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