pub enum AcquireError {
AlreadyLeased {
kind: ResourceKind,
key: MetaString,
owner: MetaString,
acquisition_process_id: Id,
},
TypeMismatch {
kind: ResourceKind,
key: MetaString,
existing_type: &'static str,
requested_type: &'static str,
},
CreationFailed {
kind: ResourceKind,
key: MetaString,
source: GenericError,
},
}Expand description
An error that occurred while acquiring a resource.
Variants§
AlreadyLeased
The resource is already leased by something else in this process.
Fields
kind: ResourceKindKind of the resource.
key: MetaStringKey of the resource.
owner: MetaStringRendered identity of the subsystem holding the resource.
This is the authoritative answer to who holds the resource. Rendered rather than kept as a
SubsystemIdentifier, which stores enough segments inline to make this error large enough to slow down
every Result that carries it.
TypeMismatch
The key is registered, but holds a different type of resource.
Two specifications of the same kind produced the same key while naming different resource types, which means their keys are not as unique as they need to be.
CreationFailed
The resource could not be created.
Fields
kind: ResourceKindKind of the resource.
key: MetaStringKey of the resource.
source: GenericErrorSource of the error.
Trait Implementations§
Source§impl Debug for AcquireError
impl Debug for AcquireError
Source§impl Display for AcquireError
impl Display for AcquireError
Source§impl Error for AcquireError
impl Error for AcquireError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl ErrorCompat for AcquireError
impl ErrorCompat for AcquireError
Source§fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
Error::source. Read moreAuto Trait Implementations§
impl Freeze for AcquireError
impl RefUnwindSafe for AcquireError
impl Send for AcquireError
impl Sync for AcquireError
impl Unpin for AcquireError
impl UnsafeUnpin for AcquireError
impl UnwindSafe for AcquireError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::RequestSource§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> Track for T
impl<T> Track for T
§fn track_resources(self, token: ResourceGroupToken) -> Tracked<Self>
fn track_resources(self, token: ResourceGroupToken) -> Tracked<Self>
Tracked wrapper. Read more§fn in_current_resource_group(self) -> Tracked<Self>
fn in_current_resource_group(self) -> Tracked<Self>
Tracked wrapper. Read more