pub struct FrontierUpdate {
pub peer_id: String,
pub version_vector: VersionVector,
pub heads: Vec<Hash>,
pub timestamp: u64,
}Expand description
Update about a peer’s frontier.
Fields§
§peer_id: StringThe peer that sent this update.
version_vector: VersionVectorThe peer’s current version vector.
heads: Vec<Hash>The peer’s current DAG heads.
timestamp: u64Timestamp of the update.
Trait Implementations§
Source§impl Clone for FrontierUpdate
impl Clone for FrontierUpdate
Source§fn clone(&self) -> FrontierUpdate
fn clone(&self) -> FrontierUpdate
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 FrontierUpdate
impl Debug for FrontierUpdate
Source§impl<'de> Deserialize<'de> for FrontierUpdate
impl<'de> Deserialize<'de> for FrontierUpdate
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 FrontierUpdate
impl RefUnwindSafe for FrontierUpdate
impl Send for FrontierUpdate
impl Sync for FrontierUpdate
impl Unpin for FrontierUpdate
impl UnwindSafe for FrontierUpdate
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