[][src]Trait golem_rpc_api::settings::Setting

pub trait Setting {
    type Item;

    const NAME: &'static str;
    const DESC: &'static str;
    const VALIDATION_DESC: &'static str;

    fn to_value(item: &Self::Item) -> Result<Value, Error>;
fn from_value(val: &Value) -> Result<Self::Item, Error>; }

Associated Types

type Item

Loading content...

Associated Constants

const NAME: &'static str

const DESC: &'static str

const VALIDATION_DESC: &'static str

Loading content...

Required methods

fn to_value(item: &Self::Item) -> Result<Value, Error>

fn from_value(val: &Value) -> Result<Self::Item, Error>

Loading content...

Implementors

impl Setting for AcceptTasks[src]

type Item = bool

impl Setting for CleaningEnabled[src]

type Item = bool

impl Setting for EnableMonitor[src]

type Item = bool

impl Setting for EnableTalkback[src]

type Item = bool

impl Setting for GettingPeersInterval[src]

type Item = f64

impl Setting for GettingTasksInterval[src]

type Item = f64

impl Setting for NodeName[src]

type Item = String

impl Setting for OptPeerNum[src]

type Item = usize

impl Setting for P2pSessionTimeout[src]

type Item = f64

impl Setting for PingsInterval[src]

type Item = usize

impl Setting for SendPings[src]

type Item = bool

impl Setting for TaskSessionTimeout[src]

type Item = f64

impl Setting for UseIpv6[src]

type Item = bool

impl Setting for UseUpnp[src]

type Item = bool

impl Setting for MaxMemorySize[src]

type Item = usize

impl Setting for MaxResourceSize[src]

type Item = f64

impl Setting for MinPrice[src]

type Item = BigDecimal

impl Setting for NumCores[src]

type Item = usize

impl Setting for RequestingTrust[src]

type Item = f64

impl Setting for TaskRequestInterval[src]

type Item = f64

impl Setting for ComputingTrust[src]

type Item = f64

impl Setting for MaxPrice[src]

type Item = BigDecimal

Loading content...