Struct chik_protocol::wallet_protocol::RejectHeaderBlocks
source · pub struct RejectHeaderBlocks {
pub start_height: u32,
pub end_height: u32,
}Fields§
§start_height: u32§end_height: u32Implementations§
source§impl RejectHeaderBlocks
impl RejectHeaderBlocks
pub fn new(start_height: u32, end_height: u32) -> RejectHeaderBlocks
Trait Implementations§
source§impl Clone for RejectHeaderBlocks
impl Clone for RejectHeaderBlocks
source§fn clone(&self) -> RejectHeaderBlocks
fn clone(&self) -> RejectHeaderBlocks
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 Debug for RejectHeaderBlocks
impl Debug for RejectHeaderBlocks
source§impl Hash for RejectHeaderBlocks
impl Hash for RejectHeaderBlocks
source§impl PartialEq for RejectHeaderBlocks
impl PartialEq for RejectHeaderBlocks
source§fn eq(&self, other: &RejectHeaderBlocks) -> bool
fn eq(&self, other: &RejectHeaderBlocks) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Streamable for RejectHeaderBlocks
impl Streamable for RejectHeaderBlocks
fn update_digest(&self, digest: &mut Sha256)
fn stream(&self, out: &mut Vec<u8>) -> Result<()>
fn parse<const TRUSTED: bool>(input: &mut Cursor<&[u8]>) -> Result<Self>
fn to_bytes(&self) -> Result<Vec<u8>, Error>
fn from_bytes(bytes: &[u8]) -> Result<Self, Error>where
Self: Sized,
fn from_bytes_unchecked(bytes: &[u8]) -> Result<Self, Error>where
Self: Sized,
fn hash(&self) -> [u8; 32]
impl Eq for RejectHeaderBlocks
impl StructuralPartialEq for RejectHeaderBlocks
Auto Trait Implementations§
impl Freeze for RejectHeaderBlocks
impl RefUnwindSafe for RejectHeaderBlocks
impl Send for RejectHeaderBlocks
impl Sync for RejectHeaderBlocks
impl Unpin for RejectHeaderBlocks
impl UnwindSafe for RejectHeaderBlocks
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