#[non_exhaustive]pub struct Successor {
pub old: PeerId,
pub new: PeerId,
pub proven: Option<SystemTime>,
}Expand description
A pending successor: new was announced by the peer accepted as old, and is accepted once
the peer proves it (or the caller promotes it).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.old: PeerIdThe accepted key that announced it.
new: PeerIdThe announced key.
proven: Option<SystemTime>When its holder proved it in a handshake (TrustStore::prove_successor), if yet.
Trait Implementations§
impl Copy for Successor
impl Eq for Successor
impl StructuralPartialEq for Successor
Auto Trait Implementations§
impl Freeze for Successor
impl RefUnwindSafe for Successor
impl Send for Successor
impl Sync for Successor
impl Unpin for Successor
impl UnsafeUnpin for Successor
impl UnwindSafe for Successor
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