pub struct TimelyParallelism { /* private fields */ }Implementations§
Source§impl TimelyParallelism
impl TimelyParallelism
pub fn new_sequential() -> TimelyParallelism
pub fn new_distributed_local( workers: u64, nodes: u64, this_node: u64, experiment_num: u64, ) -> TimelyParallelism
pub fn new_distributed_ec2( workers: u64, nodes: u64, experiment_num: u64, ) -> TimelyParallelism
pub fn new_from_info( node_info: TimelyNodeInfo, workers: u64, nodes: u64, experiment_num: u64, ) -> TimelyParallelism
pub fn to_csv(self) -> String
pub fn to_vec(self) -> Vec<String>
pub fn timely_args(&self) -> Option<Vec<String>>
Trait Implementations§
Source§impl Abomonation for TimelyParallelism
impl Abomonation for TimelyParallelism
Source§impl Clone for TimelyParallelism
impl Clone for TimelyParallelism
Source§fn clone(&self) -> TimelyParallelism
fn clone(&self) -> TimelyParallelism
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TimelyParallelism
impl Debug for TimelyParallelism
Source§impl StructOpt for TimelyParallelism
impl StructOpt for TimelyParallelism
Source§fn from_clap(matches: &ArgMatches<'_>) -> Self
fn from_clap(matches: &ArgMatches<'_>) -> Self
Builds the struct from
clap::ArgMatches. It’s guaranteed to succeed
if matches originates from an App generated by StructOpt::clap called on
the same type, otherwise it must panic.Source§fn from_args() -> Selfwhere
Self: Sized,
fn from_args() -> Selfwhere
Self: Sized,
Builds the struct from the command line arguments (
std::env::args_os).
Calls clap::Error::exit on failure, printing the error message and aborting the program.Source§fn from_args_safe() -> Result<Self, Error>where
Self: Sized,
fn from_args_safe() -> Result<Self, Error>where
Self: Sized,
Builds the struct from the command line arguments (
std::env::args_os).
Unlike StructOpt::from_args, returns clap::Error on failure instead of aborting the program,
so calling .exit is up to you.Source§fn from_iter<I>(iter: I) -> Self
fn from_iter<I>(iter: I) -> Self
Gets the struct from any iterator such as a
Vec of your making.
Print the error message and quit the program in case of failure. Read moreimpl Copy for TimelyParallelism
Auto Trait Implementations§
impl Freeze for TimelyParallelism
impl RefUnwindSafe for TimelyParallelism
impl Send for TimelyParallelism
impl Sync for TimelyParallelism
impl Unpin for TimelyParallelism
impl UnwindSafe for TimelyParallelism
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more