pub struct RejectAdditionsRequest {
pub height: u32,
pub header_hash: Bytes32,
}Fields§
§height: u32§header_hash: Bytes32Implementations§
source§impl RejectAdditionsRequest
impl RejectAdditionsRequest
pub fn new(height: u32, header_hash: Bytes32) -> RejectAdditionsRequest
Trait Implementations§
source§impl ChikProtocolMessage for RejectAdditionsRequest
impl ChikProtocolMessage for RejectAdditionsRequest
fn msg_type() -> ProtocolMessageTypes
source§impl Clone for RejectAdditionsRequest
impl Clone for RejectAdditionsRequest
source§fn clone(&self) -> RejectAdditionsRequest
fn clone(&self) -> RejectAdditionsRequest
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 RejectAdditionsRequest
impl Debug for RejectAdditionsRequest
source§impl Hash for RejectAdditionsRequest
impl Hash for RejectAdditionsRequest
source§impl PartialEq for RejectAdditionsRequest
impl PartialEq for RejectAdditionsRequest
source§fn eq(&self, other: &RejectAdditionsRequest) -> bool
fn eq(&self, other: &RejectAdditionsRequest) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Streamable for RejectAdditionsRequest
impl Streamable for RejectAdditionsRequest
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 RejectAdditionsRequest
impl StructuralPartialEq for RejectAdditionsRequest
Auto Trait Implementations§
impl RefUnwindSafe for RejectAdditionsRequest
impl Send for RejectAdditionsRequest
impl Sync for RejectAdditionsRequest
impl Unpin for RejectAdditionsRequest
impl UnwindSafe for RejectAdditionsRequest
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