pub enum CurrencyLookupError {
Access(ComponentAccessError),
NotFound {
code: Ustr,
},
}Expand description
Error returned when a currency cannot be resolved from a cache or store.
Variants§
Access(ComponentAccessError)
The cache cannot be borrowed for this lookup.
NotFound
The requested currency is not present.
Fields
§
code: UstrThe currency code that was requested.
Implementations§
Trait Implementations§
Source§impl Clone for CurrencyLookupError
impl Clone for CurrencyLookupError
impl Copy for CurrencyLookupError
Source§impl Debug for CurrencyLookupError
impl Debug for CurrencyLookupError
Source§impl Display for CurrencyLookupError
impl Display for CurrencyLookupError
impl Eq for CurrencyLookupError
Source§impl Error for CurrencyLookupError
impl Error for CurrencyLookupError
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 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 PartialEq for CurrencyLookupError
impl PartialEq for CurrencyLookupError
impl StructuralPartialEq for CurrencyLookupError
Auto Trait Implementations§
impl Freeze for CurrencyLookupError
impl RefUnwindSafe for CurrencyLookupError
impl Send for CurrencyLookupError
impl Sync for CurrencyLookupError
impl Unpin for CurrencyLookupError
impl UnsafeUnpin for CurrencyLookupError
impl UnwindSafe for CurrencyLookupError
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