pub struct TetcoreNode { /* private fields */ }Implementations§
Source§impl TetcoreNode
impl TetcoreNode
pub fn new(mode: NodeMode) -> Self
pub fn set_my_address(&mut self, address: Address)
pub fn create_genesis_block(&mut self) -> Block
pub fn initialize_genesis(&mut self, accounts: Vec<(Address, u128)>)
pub fn submit_transaction(&mut self, tx: Transaction) -> Result<(), NodeError>
pub fn produce_block(&mut self) -> Result<Block, NodeError>
pub fn import_block(&mut self, block: Block) -> Result<(), NodeError>
pub fn get_account(&self, address: &Address) -> Option<AccountData>
pub fn get_runtime(&self) -> &Runtime
pub fn get_runtime_mut(&mut self) -> &mut Runtime
pub fn get_tvm(&self) -> &TVM
pub fn get_tvm_mut(&mut self) -> &mut TVM
pub fn mode(&self) -> &NodeMode
pub fn chain(&self) -> &ChainStorage
pub fn chain_mut(&mut self) -> &mut ChainStorage
Auto Trait Implementations§
impl Freeze for TetcoreNode
impl RefUnwindSafe for TetcoreNode
impl Send for TetcoreNode
impl Sync for TetcoreNode
impl Unpin for TetcoreNode
impl UnsafeUnpin for TetcoreNode
impl UnwindSafe for TetcoreNode
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