Struct timely::worker::Config [−][src]
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]
T: Send + Sync + 'static,
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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Data for T where
T: 'static + Clone,
[src]
T: 'static + Clone,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ProgressEventTimestamp for T where
T: Data + Any + Debug,
[src]
T: Data + Any + Debug,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,