[−]Struct enapi_client::EnAPIOpenRPCJsonRpcAPI
Methods
impl<T: Transport> EnAPIOpenRPCJsonRpcAPI<T>
pub fn new(transport: T) -> Self
Creates a new RPC client backed by the given transport implementation.
pub fn createUser(
&mut self,
userName: UserName,
password: Password,
userRole: UserRole
) -> RpcRequest<CreateUser, T::Future>
&mut self,
userName: UserName,
password: Password,
userRole: UserRole
) -> RpcRequest<CreateUser, T::Future>
pub fn deleteUser(
&mut self,
JWTtoken: JwTtoken,
userId: UserId
) -> RpcRequest<DeleteUser, T::Future>
&mut self,
JWTtoken: JwTtoken,
userId: UserId
) -> RpcRequest<DeleteUser, T::Future>
pub fn login(
&mut self,
userName: UserName,
password: Password
) -> RpcRequest<Login, T::Future>
&mut self,
userName: UserName,
password: Password
) -> RpcRequest<Login, T::Future>
pub fn getUser(
&mut self,
JWTtoken: JwTtoken,
userName: UserName
) -> RpcRequest<GetUser, T::Future>
&mut self,
JWTtoken: JwTtoken,
userName: UserName
) -> RpcRequest<GetUser, T::Future>
pub fn addNode(
&mut self,
JWTtoken: JwTtoken,
userName: UserName,
nodeName: NodeName,
nodeNetwork: NodeNetwork,
syncType: SyncType,
rpcApi: RpcApi,
wsApi: WsApi
) -> RpcRequest<AddNode, T::Future>
&mut self,
JWTtoken: JwTtoken,
userName: UserName,
nodeName: NodeName,
nodeNetwork: NodeNetwork,
syncType: SyncType,
rpcApi: RpcApi,
wsApi: WsApi
) -> RpcRequest<AddNode, T::Future>
pub fn removeNode(
&mut self,
JWTtoken: JwTtoken,
userName: UserName,
containerId: ContainerId,
nodeName: NodeName,
removeNodeData: RemoveNodeData
) -> RpcRequest<RemoveNode, T::Future>
&mut self,
JWTtoken: JwTtoken,
userName: UserName,
containerId: ContainerId,
nodeName: NodeName,
removeNodeData: RemoveNodeData
) -> RpcRequest<RemoveNode, T::Future>
pub fn getNodeContainerInfo(
&mut self,
JWTtoken: JwTtoken,
containerId: ContainerId
) -> RpcRequest<GetNodeContainer, T::Future>
&mut self,
JWTtoken: JwTtoken,
containerId: ContainerId
) -> RpcRequest<GetNodeContainer, T::Future>
pub fn sol_compile(
&mut self,
solVersion: SolVersion,
solCode: SolCode
) -> RpcRequest<SolCompile, T::Future>
&mut self,
solVersion: SolVersion,
solCode: SolCode
) -> RpcRequest<SolCompile, T::Future>
pub fn ethRpcCall(
&mut self,
userName: UserName,
nodeName: NodeName,
nodeNetwork: NodeNetwork,
web3callMethod: Web3CallMethod,
web3callParams: Web3CallParams,
rpcId: RpcId
) -> RpcRequest<Web3CallResult, T::Future>
&mut self,
userName: UserName,
nodeName: NodeName,
nodeNetwork: NodeNetwork,
web3callMethod: Web3CallMethod,
web3callParams: Web3CallParams,
rpcId: RpcId
) -> RpcRequest<Web3CallResult, T::Future>
Auto Trait Implementations
impl<T> Unpin for EnAPIOpenRPCJsonRpcAPI<T> where
T: Unpin,
T: Unpin,
impl<T> Sync for EnAPIOpenRPCJsonRpcAPI<T> where
T: Sync,
T: Sync,
impl<T> Send for EnAPIOpenRPCJsonRpcAPI<T> where
T: Send,
T: Send,
impl<T> UnwindSafe for EnAPIOpenRPCJsonRpcAPI<T> where
T: UnwindSafe,
T: UnwindSafe,
impl<T> RefUnwindSafe for EnAPIOpenRPCJsonRpcAPI<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,