Struct chik_protocol::RejectBlockHeaders
source · pub struct RejectBlockHeaders {
pub start_height: u32,
pub end_height: u32,
}Fields§
§start_height: u32§end_height: u32Implementations§
source§impl RejectBlockHeaders
impl RejectBlockHeaders
pub fn new(start_height: u32, end_height: u32) -> RejectBlockHeaders
Trait Implementations§
source§impl Clone for RejectBlockHeaders
impl Clone for RejectBlockHeaders
source§fn clone(&self) -> RejectBlockHeaders
fn clone(&self) -> RejectBlockHeaders
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 RejectBlockHeaders
impl Debug for RejectBlockHeaders
source§impl Hash for RejectBlockHeaders
impl Hash for RejectBlockHeaders
source§impl PartialEq for RejectBlockHeaders
impl PartialEq for RejectBlockHeaders
source§fn eq(&self, other: &RejectBlockHeaders) -> bool
fn eq(&self, other: &RejectBlockHeaders) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Streamable for RejectBlockHeaders
impl Streamable for RejectBlockHeaders
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 RejectBlockHeaders
impl StructuralPartialEq for RejectBlockHeaders
Auto Trait Implementations§
impl Freeze for RejectBlockHeaders
impl RefUnwindSafe for RejectBlockHeaders
impl Send for RejectBlockHeaders
impl Sync for RejectBlockHeaders
impl Unpin for RejectBlockHeaders
impl UnwindSafe for RejectBlockHeaders
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