Struct hypercore_protocol::schema::Synchronize
source · pub struct Synchronize {
pub fork: u64,
pub length: u64,
pub remote_length: u64,
pub downloading: bool,
pub uploading: bool,
pub can_upgrade: bool,
}
Expand description
Synchronize message. Type 0.
Fields§
§fork: u64
Fork id, set to 0 for an un-forked hypercore.
length: u64
Length of hypercore
remote_length: u64
Known length of the remote party, 0 for unknown.
downloading: bool
Downloading allowed
uploading: bool
Uploading allowed
can_upgrade: bool
Upgrade possible
Trait Implementations§
source§impl Clone for Synchronize
impl Clone for Synchronize
source§fn clone(&self) -> Synchronize
fn clone(&self) -> Synchronize
Returns a copy 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 CompactEncoding<Synchronize> for State
impl CompactEncoding<Synchronize> for State
source§impl Debug for Synchronize
impl Debug for Synchronize
source§impl PartialEq for Synchronize
impl PartialEq for Synchronize
source§fn eq(&self, other: &Synchronize) -> bool
fn eq(&self, other: &Synchronize) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for Synchronize
Auto Trait Implementations§
impl RefUnwindSafe for Synchronize
impl Send for Synchronize
impl Sync for Synchronize
impl Unpin for Synchronize
impl UnwindSafe for Synchronize
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