Struct hypercore::RequestUpgrade
source · pub struct RequestUpgrade {
pub start: u64,
pub length: u64,
}
Expand description
Request of a DataUpgrade from peer
Fields§
§start: u64
Hypercore start index
length: u64
Length of elements
Trait Implementations§
source§impl Clone for RequestUpgrade
impl Clone for RequestUpgrade
source§fn clone(&self) -> RequestUpgrade
fn clone(&self) -> RequestUpgrade
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<RequestUpgrade> for HypercoreState
impl CompactEncoding<RequestUpgrade> for HypercoreState
source§fn preencode(&mut self, value: &RequestUpgrade) -> Result<usize, EncodingError>
fn preencode(&mut self, value: &RequestUpgrade) -> Result<usize, EncodingError>
Preencode
source§fn encode(
&mut self,
value: &RequestUpgrade,
buffer: &mut [u8]
) -> Result<usize, EncodingError>
fn encode( &mut self, value: &RequestUpgrade, buffer: &mut [u8] ) -> Result<usize, EncodingError>
Encode
source§fn decode(&mut self, buffer: &[u8]) -> Result<RequestUpgrade, EncodingError>
fn decode(&mut self, buffer: &[u8]) -> Result<RequestUpgrade, EncodingError>
Decode
source§impl Debug for RequestUpgrade
impl Debug for RequestUpgrade
source§impl PartialEq for RequestUpgrade
impl PartialEq for RequestUpgrade
source§fn eq(&self, other: &RequestUpgrade) -> bool
fn eq(&self, other: &RequestUpgrade) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RequestUpgrade
Auto Trait Implementations§
impl RefUnwindSafe for RequestUpgrade
impl Send for RequestUpgrade
impl Sync for RequestUpgrade
impl Unpin for RequestUpgrade
impl UnwindSafe for RequestUpgrade
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