pub enum AnnounceReply {
Ok,
Rotate,
}Expand description
The node’s answer to an announce: {"ok":true}, or {"rotate":true} when it
has handed out a higher version of that epoch (the app’s data went back in
time).
Variants§
Ok
{"ok":true}: the node took the head.
Rotate
{"rotate":true}: start a new epoch and announce again.
Trait Implementations§
Source§impl Clone for AnnounceReply
impl Clone for AnnounceReply
impl Copy for AnnounceReply
Source§impl Debug for AnnounceReply
impl Debug for AnnounceReply
Source§impl<'de> Deserialize<'de> for AnnounceReply
impl<'de> Deserialize<'de> for AnnounceReply
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AnnounceReply
Source§impl PartialEq for AnnounceReply
impl PartialEq for AnnounceReply
Source§impl Serialize for AnnounceReply
impl Serialize for AnnounceReply
impl StructuralPartialEq for AnnounceReply
Auto Trait Implementations§
impl Forget for AnnounceReply
impl Freeze for AnnounceReply
impl Move for AnnounceReply
impl RefUnwindSafe for AnnounceReply
impl Send for AnnounceReply
impl Sync for AnnounceReply
impl Unpin for AnnounceReply
impl UnsafeUnpin for AnnounceReply
impl UnwindSafe for AnnounceReply
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