pub struct AdvertisePC {
pub highest_pc: PhaseCertificate,
}
Expand description
A message periodically broadcasted by the sync server to let clients know about the Highest
PhaseCertificate
the server knows.
This information may serve as an evidence for the fact that a client is lagging behind, and thus make the client trigger the sync process with some server.
Fields§
§highest_pc: PhaseCertificate
Trait Implementations§
source§impl BorshDeserialize for AdvertisePCwhere
PhaseCertificate: BorshDeserialize,
impl BorshDeserialize for AdvertisePCwhere
PhaseCertificate: BorshDeserialize,
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
source§impl BorshSerialize for AdvertisePCwhere
PhaseCertificate: BorshSerialize,
impl BorshSerialize for AdvertisePCwhere
PhaseCertificate: BorshSerialize,
source§impl Clone for AdvertisePC
impl Clone for AdvertisePC
source§fn clone(&self) -> AdvertisePC
fn clone(&self) -> AdvertisePC
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 moreAuto Trait Implementations§
impl Freeze for AdvertisePC
impl RefUnwindSafe for AdvertisePC
impl Send for AdvertisePC
impl Sync for AdvertisePC
impl Unpin for AdvertisePC
impl UnwindSafe for AdvertisePC
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)