Struct unc_primitives::challenge::BlockDoubleSign
source · pub struct BlockDoubleSign {
pub left_block_header: Vec<u8>,
pub right_block_header: Vec<u8>,
}Expand description
Double signed block.
Fields§
§left_block_header: Vec<u8>§right_block_header: Vec<u8>Trait Implementations§
source§impl BorshDeserialize for BlockDoubleSign
impl BorshDeserialize for BlockDoubleSign
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
source§impl BorshSerialize for BlockDoubleSign
impl BorshSerialize for BlockDoubleSign
source§impl Clone for BlockDoubleSign
impl Clone for BlockDoubleSign
source§fn clone(&self) -> BlockDoubleSign
fn clone(&self) -> BlockDoubleSign
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 BlockDoubleSign
impl Debug for BlockDoubleSign
source§impl Display for BlockDoubleSign
impl Display for BlockDoubleSign
source§impl PartialEq for BlockDoubleSign
impl PartialEq for BlockDoubleSign
source§fn eq(&self, other: &BlockDoubleSign) -> bool
fn eq(&self, other: &BlockDoubleSign) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for BlockDoubleSign
impl StructuralPartialEq for BlockDoubleSign
Auto Trait Implementations§
impl Freeze for BlockDoubleSign
impl RefUnwindSafe for BlockDoubleSign
impl Send for BlockDoubleSign
impl Sync for BlockDoubleSign
impl Unpin for BlockDoubleSign
impl UnwindSafe for BlockDoubleSign
Blanket Implementations§
source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.