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
Starting block of this upgrade response
length: u64
Number of blocks in this upgrade response
nodes: Vec<Node>
The nodes of the merkle tree
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
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