Struct timely::worker::Config[][src]

pub struct Config { /* fields omitted */ }

Worker configuration.

Implementations

impl Config[src]

pub fn install_options(opts: &mut Options)[src]

Installs options into a [getopts::Options] struct that correspond to the parameters in the configuration.

It is the caller’s responsibility to ensure that the installed options do not conflict with any other options that may exist in opts, or that may be installed into opts in the future.

This method is only available if the getopts feature is enabled, which it is by default.

pub fn from_matches(matches: &Matches) -> Result<Config, String>[src]

Instantiates a configuration based upon the parsed options in matches.

The matches object must have been constructed from a [getopts::Options] which contained at least the options installed by Self::install_options.

This method is only available if the getopts feature is enabled, which it is by default.

pub fn progress_mode(self, progress_mode: ProgressMode) -> Self[src]

Sets the progress mode to progress_mode.

pub fn set<T>(&mut self, key: String, val: T) -> &mut Self where
    T: Send + Sync + 'static, 
[src]

Sets a typed configuration parameter for the given key.

It is recommended to install a single configuration struct using a key that uniquely identifies your project, to avoid clashes. For example, differential dataflow registers a configuration struct under the key “differential”.

pub fn get<T: 'static>(&self, key: &str) -> Option<&T>[src]

Gets the value for configured parameter key.

Returns None if key has not previously been set with [WorkerConfig::set], or if the specified T does not match the T from the call to set.

Trait Implementations

impl Clone for Config[src]

impl Debug for Config[src]

impl Default for Config[src]

Auto Trait Implementations

impl !RefUnwindSafe for Config

impl Send for Config

impl Sync for Config

impl Unpin for Config

impl !UnwindSafe for Config

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> Data for T where
    T: 'static + Clone
[src]

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

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

impl<T> ProgressEventTimestamp for T where
    T: Data + Any + Debug
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.