pub struct ValueMismatch<V: Value> {
pub party_value: V,
pub message_value: V,
}Expand description
Represents an error that occurs when there is a mismatch between the value held by the party and the value received in a message.
This struct is generic over V, which must implement the Value trait.
Fields§
§party_value: VThe value held by the party.
message_value: VThe value received in the message.
Trait Implementations§
Source§impl<V> Display for ValueMismatch<V>
impl<V> Display for ValueMismatch<V>
Source§impl<V: Value> Error for ValueMismatch<V>
impl<V: Value> Error for ValueMismatch<V>
1.30.0 · 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<V: Value> From<ValueMismatch<V>> for UpdateStateError<V>
Converts a ValueMismatch<V> into an UpdateStateError<V>.
impl<V: Value> From<ValueMismatch<V>> for UpdateStateError<V>
Converts a ValueMismatch<V> into an UpdateStateError<V>.
This conversion is used when there is a value mismatch during state updates,
allowing the error to be propagated and handled as an UpdateStateError.
Source§fn from(error: ValueMismatch<V>) -> Self
fn from(error: ValueMismatch<V>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<V> Freeze for ValueMismatch<V>where
V: Freeze,
impl<V> RefUnwindSafe for ValueMismatch<V>where
V: RefUnwindSafe,
impl<V> Send for ValueMismatch<V>where
V: Send,
impl<V> Sync for ValueMismatch<V>where
V: Sync,
impl<V> Unpin for ValueMismatch<V>where
V: Unpin,
impl<V> UnwindSafe for ValueMismatch<V>where
V: UnwindSafe,
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.