pub struct ContextActivationError { /* private fields */ }Expand description
Failure to activate a suspended Context without losing its owner.
Implementations§
Source§impl ContextActivationError
impl ContextActivationError
Sourcepub fn reason(&self) -> ContextActivationReason
pub fn reason(&self) -> ContextActivationReason
Returns the reason activation was rejected.
Sourcepub fn owner(&self) -> &SuspendedContext
pub fn owner(&self) -> &SuspendedContext
Borrows the still-owned suspended Context.
Sourcepub fn owner_mut(&mut self) -> &mut SuspendedContext
pub fn owner_mut(&mut self) -> &mut SuspendedContext
Mutably borrows the still-owned suspended Context.
Sourcepub fn into_owner(self) -> SuspendedContext
pub fn into_owner(self) -> SuspendedContext
Recovers the suspended Context so activation can be retried.
Sourcepub fn into_parts(self) -> (SuspendedContext, ContextActivationReason)
pub fn into_parts(self) -> (SuspendedContext, ContextActivationReason)
Splits the error into the retained owner and rejection reason.
Trait Implementations§
Source§impl Debug for ContextActivationError
impl Debug for ContextActivationError
Source§impl Display for ContextActivationError
impl Display for ContextActivationError
Source§impl Error for ContextActivationError
impl Error for ContextActivationError
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 !Freeze for ContextActivationError
impl !RefUnwindSafe for ContextActivationError
impl !Send for ContextActivationError
impl !Sync for ContextActivationError
impl !UnwindSafe for ContextActivationError
impl Unpin for ContextActivationError
impl UnsafeUnpin for ContextActivationError
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