pub struct NeighborHostingDetail {
pub peer_id: String,
pub known_contracts: Vec<u32>,
pub last_update: u64,
pub update_count: u64,
}Fields§
§peer_id: StringPeer identifier
known_contracts: Vec<u32>Contract hashes this neighbor is known to host
last_update: u64Last update received from this neighbor (Unix timestamp)
update_count: u64Number of updates received from this neighbor
Trait Implementations§
Source§impl Clone for NeighborHostingDetail
impl Clone for NeighborHostingDetail
Source§fn clone(&self) -> NeighborHostingDetail
fn clone(&self) -> NeighborHostingDetail
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 NeighborHostingDetail
impl Debug for NeighborHostingDetail
Source§impl<'de> Deserialize<'de> for NeighborHostingDetail
impl<'de> Deserialize<'de> for NeighborHostingDetail
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for NeighborHostingDetail
impl RefUnwindSafe for NeighborHostingDetail
impl Send for NeighborHostingDetail
impl Sync for NeighborHostingDetail
impl Unpin for NeighborHostingDetail
impl UnsafeUnpin for NeighborHostingDetail
impl UnwindSafe for NeighborHostingDetail
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