pub struct Handshake {
pub last_sequence: u64,
pub chain_hash: [u8; 32],
pub epoch: u64,
}Expand description
Handshake message sent by the replica on connection.
Fields§
§last_sequence: u64§chain_hash: [u8; 32]§epoch: u64The replica’s current fencing epoch. The primary compares it against
its own: a replica advertising a higher epoch has seen a promotion
the primary hasn’t, so the primary is stale and self-demotes (see
crate::fence).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Handshake
impl RefUnwindSafe for Handshake
impl Send for Handshake
impl Sync for Handshake
impl Unpin for Handshake
impl UnsafeUnpin for Handshake
impl UnwindSafe for Handshake
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