Struct hypercore_protocol::schema::Bitfield
source · pub struct Bitfield {
pub start: u64,
pub bitfield: Vec<u32>,
}
Expand description
Bitfield message. Type 7.
Fields§
§start: u64
Start index of bitfield
bitfield: Vec<u32>
Bitfield in 32 bit chunks beginning from start
Trait Implementations§
source§impl CompactEncoding<Bitfield> for State
impl CompactEncoding<Bitfield> for State
source§impl PartialEq for Bitfield
impl PartialEq for Bitfield
impl StructuralPartialEq for Bitfield
Auto Trait Implementations§
impl Freeze for Bitfield
impl RefUnwindSafe for Bitfield
impl Send for Bitfield
impl Sync for Bitfield
impl Unpin for Bitfield
impl UnwindSafe for Bitfield
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
)