[][src]Struct komodo_rpc_client::Client

pub struct Client { /* fields omitted */ }

Implementations

impl Client[src]

pub fn new_komodo_client() -> Result<Client, ApiError>[src]

Constructs a new Client that talks to the Komodo main chain. It assumes Komodo has been installed and run at least once, since it fetches the needed RPC authentication parameters from the config file which is created upon initialisation.

pub fn new_assetchain_client(ac: &Chain) -> Result<Self, ApiError>[src]

Constructs a new Client that talks to the specified assetchain. It assumes Komodo has been installed and the assetchain has been started at least once, in order to be able to fetch the needed RPC authentication parameters from the assetchain config file.

If Custom(String) is used as parameter, this function will throw a std::io::Error::NotFound if the defined config folder does not exist.

Trait Implementations

impl Debug for Client[src]

impl KomodoRpcApi for Client[src]

Auto Trait Implementations

impl !RefUnwindSafe for Client

impl Send for Client

impl Sync for Client

impl Unpin for Client

impl !UnwindSafe for Client

Blanket Implementations

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

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

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

impl<T> Erased for T

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

impl<T, U> Into<U> for T where
    U: From<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.