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