[][src]Struct golem_rpc_api::core::GolemCore

pub struct GolemCore<'a, Inner: RpcEndpoint + ?Sized>(_);

Methods

impl<'a, Inner: RpcEndpoint + ?Sized + 'static> GolemCore<'a, Inner>[src]

pub fn get_settings<'b>(
    &'b self
) -> impl Future<Output = Result<Map<String, Value>, Error>> + 'static
[src]

Get Golem node settings described in appconfig.ini file Calls env.opts RPC URI.

pub fn raw_get_setting(
    &self,
    key: String
) -> impl Future<Output = Result<Value, Error>>
[src]

Calls env.opt RPC URI.

pub fn raw_update_setting(
    &self,
    key: String,
    value: Value
) -> impl Future<Output = Result<(), Error>>
[src]

Calls env.opt.update RPC URI.

pub fn update_settings(
    &self,
    settings_dict: Map<String, Value>
) -> impl Future<Output = Result<(), Error>>
[src]

Calls env.opts.update RPC URI.

pub fn get_datadir<'b>(
    &'b self
) -> impl Future<Output = Result<String, Error>> + 'static
[src]

Calls env.datadir RPC URI.

pub fn get_version<'b>(
    &'b self
) -> impl Future<Output = Result<String, Error>> + 'static
[src]

Calls golem.version RPC URI.

pub fn key_exists<'b>(
    &'b self
) -> impl Future<Output = Result<bool, Error>> + 'static
[src]

Calls golem.password.key_exists RPC URI.

pub fn set_password(
    &self,
    password: String
) -> impl Future<Output = Result<bool, Error>>
[src]

Calls golem.password.set RPC URI.

pub fn is_account_unlocked<'b>(
    &'b self
) -> impl Future<Output = Result<bool, Error>> + 'static
[src]

Calls golem.password.unlocked RPC URI.

pub fn is_mainnet<'b>(
    &'b self
) -> impl Future<Output = Result<bool, Error>> + 'static
[src]

Calls golem.mainnet RPC URI.

pub fn status<'b>(
    &'b self
) -> impl Future<Output = Result<ServerStatus, Error>> + 'static
[src]

Calls golem.status RPC URI.

impl<'a, Endpoint: RpcEndpoint + 'static> GolemCore<'a, Endpoint>[src]

pub fn update_setting<S: Setting>(
    &self,
    value: impl AsRef<S::Item>
) -> impl Future<Output = Result<(), Error>>
[src]

pub fn update_setting_dyn(
    &self,
    setting: &dyn DynamicSetting,
    value: &str
) -> impl Future<Output = Result<(), Error>> + 'static
[src]

pub fn get_setting<S: Setting>(
    &self
) -> impl Future<Output = Result<S::Item, Error>>
[src]

Auto Trait Implementations

impl<'a, Inner: ?Sized> RefUnwindSafe for GolemCore<'a, Inner> where
    Inner: RefUnwindSafe

impl<'a, Inner: ?Sized> Send for GolemCore<'a, Inner> where
    Inner: Sync

impl<'a, Inner: ?Sized> Sync for GolemCore<'a, Inner> where
    Inner: Sync

impl<'a, Inner: ?Sized> Unpin for GolemCore<'a, Inner>

impl<'a, Inner: ?Sized> UnwindSafe for GolemCore<'a, Inner> where
    Inner: RefUnwindSafe

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> From<T> for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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<V, T> VZip<V> for T where
    V: MultiLane<T>,