pub struct NotLeader {
pub leader: Option<NodeId>,
}Expand description
Returned by RaftNode::propose / RaftNode::read_index when the node
is not the leader.
Fields§
§leader: Option<NodeId>Best-known current leader, if any, for client redirection.
Trait Implementations§
impl Copy for NotLeader
impl Eq for NotLeader
impl StructuralPartialEq for NotLeader
Auto Trait Implementations§
impl Freeze for NotLeader
impl RefUnwindSafe for NotLeader
impl Send for NotLeader
impl Sync for NotLeader
impl Unpin for NotLeader
impl UnsafeUnpin for NotLeader
impl UnwindSafe for NotLeader
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