Enum timely::Configuration [−][src]
pub enum Configuration { Thread, Process(usize), Cluster(usize, usize, Vec<String>, bool, Box<Fn(CommunicationSetup) + 'static + Send + Sync>), }
Possible configurations for the communication infrastructure.
Variants
Thread
Use one thread.
Process(usize)
Use one process with an indicated number of threads.
Cluster(usize, usize, Vec<String>, bool, Box<Fn(CommunicationSetup) + 'static + Send + Sync>)
Expect multiple processes indicated by (threads, process, host_list, report)
.
Methods
impl Configuration
[src]
impl Configuration
pub fn from_args<I>(args: I) -> Result<Configuration, String> where
I: Iterator<Item = String>,
[src]
pub fn from_args<I>(args: I) -> Result<Configuration, String> where
I: Iterator<Item = String>,
Constructs a new configuration by parsing supplied text arguments.
Most commonly, this uses std::env::Args()
as the supplied iterator.
pub fn try_build(
self
) -> Result<(Vec<GenericBuilder>, Box<Any + 'static>), String>
[src]
pub fn try_build(
self
) -> Result<(Vec<GenericBuilder>, Box<Any + 'static>), String>
Attempts to assemble the described communication infrastructure.
Auto Trait Implementations
impl Send for Configuration
impl Send for Configuration
impl Sync for Configuration
impl Sync for Configuration