Struct EnAPIOpenRPCJsonRpcAPI

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

Implementations§

Source§

impl<T: Transport> EnAPIOpenRPCJsonRpcAPI<T>

Source

pub fn new(transport: T) -> Self

Creates a new RPC client backed by the given transport implementation.

Source

pub fn getSysInfo( &mut self, JWTtoken: JwTtoken, ) -> RpcRequest<GetSysInfo, T::Future>

Source

pub fn createUser( &mut self, userName: UserName, password: Password, userRole: UserRole, ) -> RpcRequest<CreateUser, T::Future>

Source

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

Source

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

Source

pub fn getUser( &mut self, JWTtoken: JwTtoken, userName: UserName, ) -> RpcRequest<GetUser, T::Future>

Source

pub fn addNode( &mut self, JWTtoken: JwTtoken, userName: UserName, nodeName: NodeName, nodeNetwork: NodeNetwork, syncType: SyncType, rpcApi: RpcApi, wsApi: WsApi, ) -> RpcRequest<AddNode, T::Future>

Source

pub fn removeNode( &mut self, JWTtoken: JwTtoken, userName: UserName, containerId: ContainerId, nodeName: NodeName, removeNodeData: RemoveNodeData, ) -> RpcRequest<RemoveNode, T::Future>

Source

pub fn getNodeContainerInfo( &mut self, JWTtoken: JwTtoken, containerId: ContainerId, ) -> RpcRequest<GetNodeContainer, T::Future>

Source

pub fn sol_compile( &mut self, solVersion: SolVersion, solCode: SolCode, ) -> RpcRequest<SolCompile, T::Future>

Source

pub fn ethRpcCall( &mut self, userName: UserName, nodeName: NodeName, nodeNetwork: NodeNetwork, web3callMethod: Web3CallMethod, web3callParams: Web3CallParams, rpcId: RpcId, ) -> RpcRequest<Web3CallResult, T::Future>

Source

pub fn installService( &mut self, serviceName: ServiceName, version: Version, ) -> RpcRequest<InstallSuccess, T::Future>

Source

pub fn listServices( &mut self, filter: Filter, ) -> RpcRequest<ListedServices, T::Future>

Source

pub fn listInstalledServices( &mut self, ) -> RpcRequest<InstalledServices, T::Future>

Source

pub fn listRunningServices(&mut self) -> RpcRequest<RunningServices, T::Future>

Source

pub fn startService( &mut self, name: Name, version: Version, environment: Environment, ) -> RpcRequest<ServiceConfig, T::Future>

Auto Trait Implementations§

§

impl<T> Freeze for EnAPIOpenRPCJsonRpcAPI<T>
where T: Freeze,

§

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

§

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

§

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

§

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

§

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

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.