Type Alias ContextDbError
pub type ContextDbError<CTX> = ContextError<<<CTX as ContextTr>::Db as Database>::Error>;
Expand description
Type alias for database error within a context
Aliased Type§
pub enum ContextDbError<CTX> {
Db(<<CTX as ContextTr>::Db as Database>::Error),
Custom(String),
}
Variants§
Layout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.
Trait Implementations
§impl<DbError> Clone for ContextError<DbError>where
DbError: Clone,
impl<DbError> Clone for ContextError<DbError>where
DbError: Clone,
§fn clone(&self) -> ContextError<DbError>
fn clone(&self) -> ContextError<DbError>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl<DbError> Debug for ContextError<DbError>where
DbError: Debug,
impl<DbError> Debug for ContextError<DbError>where
DbError: Debug,
§impl<'de, DbError> Deserialize<'de> for ContextError<DbError>where
DbError: Deserialize<'de>,
impl<'de, DbError> Deserialize<'de> for ContextError<DbError>where
DbError: Deserialize<'de>,
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ContextError<DbError>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ContextError<DbError>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl<DbError> From<DbError> for ContextError<DbError>
impl<DbError> From<DbError> for ContextError<DbError>
§fn from(value: DbError) -> ContextError<DbError>
fn from(value: DbError) -> ContextError<DbError>
Converts to this type from the input type.
§impl<DbError> FromStringError for ContextError<DbError>
impl<DbError> FromStringError for ContextError<DbError>
§fn from_string(value: String) -> ContextError<DbError>
fn from_string(value: String) -> ContextError<DbError>
Converts a string to an
EVMError::Custom
error.§impl<DbError> Hash for ContextError<DbError>where
DbError: Hash,
impl<DbError> Hash for ContextError<DbError>where
DbError: Hash,
§impl<DbError> Ord for ContextError<DbError>where
DbError: Ord,
impl<DbError> Ord for ContextError<DbError>where
DbError: Ord,
§fn cmp(&self, other: &ContextError<DbError>) -> Ordering
fn cmp(&self, other: &ContextError<DbError>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
§impl<DbError> PartialEq for ContextError<DbError>where
DbError: PartialEq,
impl<DbError> PartialEq for ContextError<DbError>where
DbError: PartialEq,
§impl<DbError> PartialOrd for ContextError<DbError>where
DbError: PartialOrd,
impl<DbError> PartialOrd for ContextError<DbError>where
DbError: PartialOrd,
§impl<DbError> Serialize for ContextError<DbError>where
DbError: Serialize,
impl<DbError> Serialize for ContextError<DbError>where
DbError: Serialize,
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more