Union chain_impl_mockchain::header::cstruct::Header
source · pub(super) union Header {
unsigned: [u8; 81],
bft: [u8; 177],
gp: [u8; 693],
}
Fields§
§unsigned: [u8; 81]
§bft: [u8; 177]
§gp: [u8; 693]
Implementations§
source§impl Header
impl Header
pub fn version(&self) -> u8
pub fn as_slice(&self) -> HeaderSlice<'_>
fn as_slice_mut(&mut self) -> &mut [u8] ⓘ
pub fn new(version: u8) -> Header
pub fn set_version(&mut self, s: u8)
pub fn set_content_size(&mut self, s: u32)
pub fn set_date_epoch(&mut self, s: u32)
pub fn set_date_slotid(&mut self, s: u32)
pub fn set_height(&mut self, s: u32)
pub fn set_content_hash(&mut self, s: &[u8; 32])
pub fn set_parent_hash(&mut self, s: &[u8; 32])
pub fn set_bft_leader_id(&mut self, s: &[u8; 32])
pub fn set_bft_leader_id_slice(&mut self, s: &[u8])
pub fn set_bft_signature(&mut self, s: &[u8; 64])
pub fn set_bft_signature_slice(&mut self, s: &[u8])
pub fn set_gp_node_id(&mut self, s: &[u8; 32])
pub fn set_gp_node_id_slice(&mut self, s: &[u8])
pub fn set_gp_vrf_proof(&mut self, s: &[u8; 96])
pub fn set_gp_vrf_proof_slice(&mut self, s: &[u8])
pub fn set_gp_kes_signature(&mut self, s: &[u8; 484])
pub fn set_gp_kes_signature_slice(&mut self, s: &[u8])
Trait Implementations§
source§impl PartialEq<Header> for Header
impl PartialEq<Header> for Header
impl Eq for Header
Auto Trait Implementations§
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnwindSafe for Header
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