Struct hypercore::DataUpgrade
source · pub struct DataUpgrade {
pub start: u64,
pub length: u64,
pub nodes: Vec<Node>,
pub additional_nodes: Vec<Node>,
pub signature: Vec<u8>,
}
Expand description
TODO: Document
Fields§
§start: u64
TODO: Document
length: u64
TODO: Document
nodes: Vec<Node>
TODO: Document
additional_nodes: Vec<Node>
TODO: Document
signature: Vec<u8>
TODO: Document
Trait Implementations§
source§impl Clone for DataUpgrade
impl Clone for DataUpgrade
source§fn clone(&self) -> DataUpgrade
fn clone(&self) -> DataUpgrade
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<DataUpgrade> for HypercoreState
impl CompactEncoding<DataUpgrade> for HypercoreState
source§fn preencode(&mut self, value: &DataUpgrade) -> Result<usize, EncodingError>
fn preencode(&mut self, value: &DataUpgrade) -> Result<usize, EncodingError>
Preencode
source§fn encode(
&mut self,
value: &DataUpgrade,
buffer: &mut [u8],
) -> Result<usize, EncodingError>
fn encode( &mut self, value: &DataUpgrade, buffer: &mut [u8], ) -> Result<usize, EncodingError>
Encode
source§fn decode(&mut self, buffer: &[u8]) -> Result<DataUpgrade, EncodingError>
fn decode(&mut self, buffer: &[u8]) -> Result<DataUpgrade, EncodingError>
Decode
source§impl Debug for DataUpgrade
impl Debug for DataUpgrade
source§impl PartialEq for DataUpgrade
impl PartialEq for DataUpgrade
source§fn eq(&self, other: &DataUpgrade) -> bool
fn eq(&self, other: &DataUpgrade) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DataUpgrade
Auto Trait Implementations§
impl Freeze for DataUpgrade
impl RefUnwindSafe for DataUpgrade
impl Send for DataUpgrade
impl Sync for DataUpgrade
impl Unpin for DataUpgrade
impl UnwindSafe for DataUpgrade
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)