Struct jopemachine_raft::raw_node::Peer
source · pub struct Peer {
pub id: u64,
pub context: Option<Vec<u8>>,
}
Expand description
Represents a Peer node in the cluster.
Fields§
§id: u64
The ID of the peer.
context: Option<Vec<u8>>
If there is context associated with the peer (like connection information), it can be serialized and stored here.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Peer
impl Send for Peer
impl Sync for Peer
impl Unpin for Peer
impl UnwindSafe for Peer
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