#[repr(C, packed(1))]pub struct NetworkContext {
pub epoch: ChainEpoch,
pub timestamp: u64,
pub base_fee: TokenAmount,
pub chain_id: u64,
pub network_version: NetworkVersion,
}Fields§
§epoch: ChainEpochThe current epoch.
timestamp: u64The current time (seconds since the unix epoch).
base_fee: TokenAmountThe current base-fee.
chain_id: u64The Chain ID of the network.
network_version: NetworkVersionThe network version.
Trait Implementations§
Source§impl Clone for NetworkContext
impl Clone for NetworkContext
Source§fn clone(&self) -> NetworkContext
fn clone(&self) -> NetworkContext
Returns a duplicate 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 NetworkContext
impl Debug for NetworkContext
Source§impl PartialEq for NetworkContext
impl PartialEq for NetworkContext
impl Copy for NetworkContext
impl Eq for NetworkContext
impl StructuralPartialEq for NetworkContext
impl SyscallSafe for NetworkContext
Auto Trait Implementations§
impl Freeze for NetworkContext
impl RefUnwindSafe for NetworkContext
impl Send for NetworkContext
impl Sync for NetworkContext
impl Unpin for NetworkContext
impl UnwindSafe for NetworkContext
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