pub struct NodeManageClient<T> { /* private fields */ }Expand description
Node manage Client
Implementations§
Source§impl<T> NodeManageClient<T>
impl<T> NodeManageClient<T>
Trait Implementations§
Source§impl<T> ContractCall<JsonRpcResponse, ToolError> for NodeManageClient<T>
impl<T> ContractCall<JsonRpcResponse, ToolError> for NodeManageClient<T>
Source§fn prepare_call_args(
&self,
name: &str,
values: &[&str],
to_addr: Option<Address>,
) -> Result<(String, String), ToolError>
fn prepare_call_args( &self, name: &str, values: &[&str], to_addr: Option<Address>, ) -> Result<(String, String), ToolError>
Prepare contract call arguments
Source§fn contract_send_tx(
&mut self,
name: &str,
values: &[&str],
quota: Option<u64>,
to_addr: Option<Address>,
) -> Result<JsonRpcResponse, ToolError>
fn contract_send_tx( &mut self, name: &str, values: &[&str], quota: Option<u64>, to_addr: Option<Address>, ) -> Result<JsonRpcResponse, ToolError>
SendTx a contract method
Source§impl<T> NodeManagementExt<T, JsonRpcResponse, ToolError> for NodeManageClient<T>
impl<T> NodeManagementExt<T, JsonRpcResponse, ToolError> for NodeManageClient<T>
Source§fn downgrade_consensus_node(
&mut self,
address: &str,
quota: Option<u64>,
) -> Result<R, E>
fn downgrade_consensus_node( &mut self, address: &str, quota: Option<u64>, ) -> Result<R, E>
Downgrade consensus node to ordinary node
Get authorities
Source§fn approve_node(&mut self, address: &str, quota: Option<u64>) -> Result<R, E>
fn approve_node(&mut self, address: &str, quota: Option<u64>) -> Result<R, E>
Approve node upgrades to consensus nodes
Auto Trait Implementations§
impl<T> Freeze for NodeManageClient<T>where
T: Freeze,
impl<T> RefUnwindSafe for NodeManageClient<T>where
T: RefUnwindSafe,
impl<T> Send for NodeManageClient<T>where
T: Send,
impl<T> Sync for NodeManageClient<T>where
T: Sync,
impl<T> Unpin for NodeManageClient<T>where
T: Unpin,
impl<T> UnwindSafe for NodeManageClient<T>where
T: UnwindSafe,
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