[]Struct enapi_client::EnAPIOpenRPCJsonRpcAPI

pub struct EnAPIOpenRPCJsonRpcAPI<T: Transport> { /* fields omitted */ }

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>

pub fn deleteUser(
    &mut self,
    JWTtoken: JwTtoken,
    userId: UserId
) -> RpcRequest<DeleteUser, T::Future>

pub fn login(
    &mut self,
    userName: UserName,
    password: Password
) -> RpcRequest<Login, T::Future>

pub fn getUser(
    &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>

pub fn removeNode(
    &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>

pub fn sol_compile(
    &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>

Auto Trait Implementations

impl<T> Unpin for EnAPIOpenRPCJsonRpcAPI<T> where
    T: Unpin

impl<T> Sync for EnAPIOpenRPCJsonRpcAPI<T> where
    T: Sync

impl<T> Send for EnAPIOpenRPCJsonRpcAPI<T> where
    T: Send

impl<T> UnwindSafe for EnAPIOpenRPCJsonRpcAPI<T> where
    T: UnwindSafe

impl<T> RefUnwindSafe for EnAPIOpenRPCJsonRpcAPI<T> where
    T: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]