pub enum ProviderContextPinError {
ContextUnavailable(ProviderContextIdentity),
PinCountOverflow(ProviderContextIdentity),
}Expand description
Why a provider/context pin could not be acquired.
Variants§
The context is retiring, lost, or terminated, so no new work may be attached to it. The caller must not queue the release.
PinCountOverflow(ProviderContextIdentity)
The implementation’s outstanding-work counter cannot represent another pin. Treated as a refusal rather than a wrap.
Trait Implementations§
Source§impl Clone for ProviderContextPinError
impl Clone for ProviderContextPinError
Source§fn clone(&self) -> ProviderContextPinError
fn clone(&self) -> ProviderContextPinError
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 ProviderContextPinError
Source§impl Debug for ProviderContextPinError
impl Debug for ProviderContextPinError
Source§impl Display for ProviderContextPinError
impl Display for ProviderContextPinError
impl Eq for ProviderContextPinError
Source§impl Error for ProviderContextPinError
impl Error for ProviderContextPinError
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 ProviderContextPinError
impl PartialEq for ProviderContextPinError
impl StructuralPartialEq for ProviderContextPinError
Auto Trait Implementations§
impl Freeze for ProviderContextPinError
impl RefUnwindSafe for ProviderContextPinError
impl Send for ProviderContextPinError
impl Sync for ProviderContextPinError
impl Unpin for ProviderContextPinError
impl UnsafeUnpin for ProviderContextPinError
impl UnwindSafe for ProviderContextPinError
Blanket Implementations§
impl<T> BindingResource for T
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