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: T
Expected value.
got: T
Actual 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<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