pub struct NetworkParameters {
pub network: Network,
pub packet_magic: u32,
pub port: u16,
pub brontide_port: u16,
pub pow: PowParameters,
pub genesis_hash: BlockHash,
pub genesis_time: BlockTime,
}Fields§
§network: Network§packet_magic: u32§port: u16§brontide_port: u16§pow: PowParameters§genesis_hash: BlockHash§genesis_time: BlockTimeImplementations§
Source§impl NetworkParameters
impl NetworkParameters
pub const fn genesis_header(self) -> Header
Trait Implementations§
Source§impl Clone for NetworkParameters
impl Clone for NetworkParameters
Source§fn clone(&self) -> NetworkParameters
fn clone(&self) -> NetworkParameters
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NetworkParameters
Source§impl Debug for NetworkParameters
impl Debug for NetworkParameters
impl Eq for NetworkParameters
Source§impl PartialEq for NetworkParameters
impl PartialEq for NetworkParameters
impl StructuralPartialEq for NetworkParameters
Auto Trait Implementations§
impl Freeze for NetworkParameters
impl RefUnwindSafe for NetworkParameters
impl Send for NetworkParameters
impl Sync for NetworkParameters
impl Unpin for NetworkParameters
impl UnsafeUnpin for NetworkParameters
impl UnwindSafe for NetworkParameters
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