pub struct BallotNumberMismatch {
pub party_ballot_number: u64,
pub message_ballot_number: u64,
}Expand description
Represents an error that occurs when there is a mismatch between the ballot number of the party and the ballot number received in a message.
Fields§
§party_ballot_number: u64The ballot number held by the party.
message_ballot_number: u64The ballot number received in the message.
Trait Implementations§
Source§impl Debug for BallotNumberMismatch
impl Debug for BallotNumberMismatch
Source§impl Display for BallotNumberMismatch
impl Display for BallotNumberMismatch
Source§impl Error for BallotNumberMismatch
impl Error for BallotNumberMismatch
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<BallotNumberMismatch> for UpdateStateError<V>
Converts a BallotNumberMismatch into an UpdateStateError<V>.
impl<V: Value> From<BallotNumberMismatch> for UpdateStateError<V>
Converts a BallotNumberMismatch into an UpdateStateError<V>.
This conversion is used when there is a ballot number mismatch during state updates,
allowing the error to be propagated and handled as an UpdateStateError.
Source§fn from(error: BallotNumberMismatch) -> Self
fn from(error: BallotNumberMismatch) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BallotNumberMismatch
impl RefUnwindSafe for BallotNumberMismatch
impl Send for BallotNumberMismatch
impl Sync for BallotNumberMismatch
impl Unpin for BallotNumberMismatch
impl UnwindSafe for BallotNumberMismatch
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.