Struct jsonrpsee_core::error::Mismatch
source · pub struct Mismatch<T> {
pub expected: T,
pub got: T,
}Expand description
Convenience type for displaying errors.
Fields§
§expected: TExpected value.
got: TActual value.
Trait Implementations§
source§impl<T: PartialEq> PartialEq<Mismatch<T>> for Mismatch<T>
impl<T: PartialEq> PartialEq<Mismatch<T>> for Mismatch<T>
impl<T: Eq> Eq for Mismatch<T>
impl<T> StructuralEq for Mismatch<T>
impl<T> StructuralPartialEq for Mismatch<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Mismatch<T>where
T: RefUnwindSafe,
impl<T> Send for Mismatch<T>where
T: Send,
impl<T> Sync for Mismatch<T>where
T: Sync,
impl<T> Unpin for Mismatch<T>where
T: Unpin,
impl<T> UnwindSafe for Mismatch<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.