#[non_exhaustive]pub struct Retiring {
pub id: PeerId,
pub successor: Option<PeerId>,
pub retires: SystemTime,
}Expand description
An accepted key with a retirement time: it is refused from retires on.
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.id: PeerIdThe retiring key.
successor: Option<PeerId>The key that replaced it, when it was replaced by rotation.
retires: SystemTimeWhen it stops being accepted.
Trait Implementations§
impl Copy for Retiring
impl Eq for Retiring
impl StructuralPartialEq for Retiring
Auto Trait Implementations§
impl Freeze for Retiring
impl RefUnwindSafe for Retiring
impl Send for Retiring
impl Sync for Retiring
impl Unpin for Retiring
impl UnsafeUnpin for Retiring
impl UnwindSafe for Retiring
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