Struct rusk_vm::NetworkState [−][src]
pub struct NetworkState { /* fields omitted */ }
Expand description
The main network state, includes the full state of contracts.
Implementations
Returns a NetworkState
for a specific block height
Deploys a contract to the state, returns the address of the created contract or an error
pub fn get_contract<'a>(
&'a self,
contract_id: &ContractId
) -> Result<impl Deref<Target = Contract> + 'a, VMError>
[src]
pub fn get_contract<'a>(
&'a self,
contract_id: &ContractId
) -> Result<impl Deref<Target = Contract> + 'a, VMError>
[src]Returns a reference to the specified contracts state
pub fn get_contract_mut<'a>(
&'a mut self,
contract_id: &ContractId
) -> Result<impl DerefMut<Target = Contract> + 'a, VMError>
[src]
pub fn get_contract_mut<'a>(
&'a mut self,
contract_id: &ContractId
) -> Result<impl DerefMut<Target = Contract> + 'a, VMError>
[src]Returns a reference to the specified contracts state
Returns a reference to the map of registered host modules
Returns the state’s block height
Queryn the contract at address target
Transact with the contract at address target
Register a host-fn handler
pub fn get_contract_cast_state<C>(
&self,
contract_id: &ContractId
) -> Result<C, VMError> where
C: Canon,
[src]
pub fn get_contract_cast_state<C>(
&self,
contract_id: &ContractId
) -> Result<C, VMError> where
C: Canon,
[src]Gets the state of the given contract
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl !RefUnwindSafe for NetworkState
impl !Send for NetworkState
impl !Sync for NetworkState
impl Unpin for NetworkState
impl !UnwindSafe for NetworkState
Blanket Implementations
Mutably borrows from an owned value. Read more
Encode Self
into a buffer