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§

§

Db(<<CTX as ContextTr>::Db as Database>::Error)

Database error.

§

Custom(String)

Custom string error.

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,

§

fn clone(&self) -> ContextError<DbError>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl<DbError> Debug for ContextError<DbError>
where DbError: Debug,

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

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>,

Deserialize this value from the given Serde deserializer. Read more
§

impl<DbError> From<DbError> for ContextError<DbError>

§

fn from(value: DbError) -> ContextError<DbError>

Converts to this type from the input type.
§

impl<DbError> FromStringError for 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,

§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
§

impl<DbError> Ord for ContextError<DbError>
where DbError: Ord,

§

fn cmp(&self, other: &ContextError<DbError>) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
§

impl<DbError> PartialEq for ContextError<DbError>
where DbError: PartialEq,

§

fn eq(&self, other: &ContextError<DbError>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl<DbError> PartialOrd for ContextError<DbError>
where DbError: PartialOrd,

§

fn partial_cmp(&self, other: &ContextError<DbError>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
§

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,

Serialize this value into the given Serde serializer. Read more
§

impl<DbError> Eq for ContextError<DbError>
where DbError: Eq,

§

impl<DbError> StructuralPartialEq for ContextError<DbError>