pub enum ComponentAccessError {
NotRegistered {
resource: &'static str,
operation: &'static str,
},
ReadConflict {
resource: &'static str,
operation: &'static str,
},
WriteConflict {
resource: &'static str,
operation: &'static str,
},
}Expand description
Failure to acquire access to component state.
A conflict identifies the requested access, not the holder or its call stack. Callback reentry can cause a conflict, but is not the only possible cause.
Variants§
NotRegistered
Registration has not supplied the requested resource.
Fields
ReadConflict
Shared access conflicts with an existing exclusive borrow.
Fields
WriteConflict
Exclusive access conflicts with an existing shared or exclusive borrow.
Trait Implementations§
Source§impl Clone for ComponentAccessError
impl Clone for ComponentAccessError
impl Copy for ComponentAccessError
Source§impl Debug for ComponentAccessError
impl Debug for ComponentAccessError
Source§impl Display for ComponentAccessError
impl Display for ComponentAccessError
impl Eq for ComponentAccessError
Source§impl Error for ComponentAccessError
impl Error for ComponentAccessError
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 From<ComponentAccessError> for AccountLookupError
impl From<ComponentAccessError> for AccountLookupError
Source§fn from(source: ComponentAccessError) -> Self
fn from(source: ComponentAccessError) -> Self
Converts to this type from the input type.
Source§impl From<ComponentAccessError> for CurrencyLookupError
impl From<ComponentAccessError> for CurrencyLookupError
Source§fn from(source: ComponentAccessError) -> Self
fn from(source: ComponentAccessError) -> Self
Converts to this type from the input type.
Source§impl From<ComponentAccessError> for InstrumentLookupError
impl From<ComponentAccessError> for InstrumentLookupError
Source§fn from(source: ComponentAccessError) -> Self
fn from(source: ComponentAccessError) -> Self
Converts to this type from the input type.
Source§impl From<ComponentAccessError> for SyntheticInstrumentLookupError
impl From<ComponentAccessError> for SyntheticInstrumentLookupError
Source§fn from(source: ComponentAccessError) -> Self
fn from(source: ComponentAccessError) -> Self
Converts to this type from the input type.
Source§impl From<ComponentAccessError> for OrderBookLookupError
impl From<ComponentAccessError> for OrderBookLookupError
Source§fn from(source: ComponentAccessError) -> Self
fn from(source: ComponentAccessError) -> Self
Converts to this type from the input type.
Source§impl From<ComponentAccessError> for OwnOrderBookLookupError
impl From<ComponentAccessError> for OwnOrderBookLookupError
Source§fn from(source: ComponentAccessError) -> Self
fn from(source: ComponentAccessError) -> Self
Converts to this type from the input type.
Source§impl From<ComponentAccessError> for OrderLookupError
impl From<ComponentAccessError> for OrderLookupError
Source§fn from(source: ComponentAccessError) -> Self
fn from(source: ComponentAccessError) -> Self
Converts to this type from the input type.
Source§impl From<ComponentAccessError> for OrderListLookupError
impl From<ComponentAccessError> for OrderListLookupError
Source§fn from(source: ComponentAccessError) -> Self
fn from(source: ComponentAccessError) -> Self
Converts to this type from the input type.
Source§impl From<ComponentAccessError> for PositionLookupError
impl From<ComponentAccessError> for PositionLookupError
Source§fn from(source: ComponentAccessError) -> Self
fn from(source: ComponentAccessError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ComponentAccessError
impl PartialEq for ComponentAccessError
impl StructuralPartialEq for ComponentAccessError
Auto Trait Implementations§
impl Freeze for ComponentAccessError
impl RefUnwindSafe for ComponentAccessError
impl Send for ComponentAccessError
impl Sync for ComponentAccessError
impl Unpin for ComponentAccessError
impl UnsafeUnpin for ComponentAccessError
impl UnwindSafe for ComponentAccessError
Blanket Implementations§
impl<T> Allocation 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more