pub struct Peer {
pub id: u64,
pub context: Option<Vec<u8>>,
}Expand description
Represents a Peer node in the cluster.
Fields§
§id: u64The 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 Freeze for Peer
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