pub struct RingPeerSnapshot {
pub id: String,
pub is_gateway: bool,
pub ws_port: u16,
pub network_port: u16,
pub network_address: String,
pub location: Option<f64>,
pub connections: Vec<String>,
pub contract: Option<PeerContractStatus>,
}Expand description
Snapshot describing a peer’s ring metadata and adjacency.
Fields§
§id: String§is_gateway: bool§ws_port: u16§network_port: u16§network_address: String§location: Option<f64>§connections: Vec<String>§contract: Option<PeerContractStatus>Trait Implementations§
Source§impl Clone for RingPeerSnapshot
impl Clone for RingPeerSnapshot
Source§fn clone(&self) -> RingPeerSnapshot
fn clone(&self) -> RingPeerSnapshot
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RingPeerSnapshot
impl Debug for RingPeerSnapshot
Auto Trait Implementations§
impl Freeze for RingPeerSnapshot
impl RefUnwindSafe for RingPeerSnapshot
impl Send for RingPeerSnapshot
impl Sync for RingPeerSnapshot
impl Unpin for RingPeerSnapshot
impl UnwindSafe for RingPeerSnapshot
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