pub fn try_build(self) -> Result<(Vec<GenericBuilder>, Box<dyn Any+Send>), String> {
        match self {
            Config::Thread => {
                Ok((vec![GenericBuilder::Thread(ThreadBuilder)], Box::new(())))
            },
            Config::Process(threads) => {
                Ok((Process::new_vector(threads).into_iter().map(|x| GenericBuilder::Process(x)).collect(), Box::new(())))
            },
            Config::ProcessBinary(threads) => {
                Ok((ProcessBuilder::new_vector(threads).into_iter().map(|x| GenericBuilder::ProcessBinary(x)).collect(), Box::new(())))
            },
            Config::Cluster { threads, process, addresses, report, log_fn } => {
                match initialize_networking(addresses, process, threads, report, log_fn) {
                    Ok((stuff, guard)) => {
                        Ok((stuff.into_iter().map(|x| GenericBuilder::ZeroCopy(x)).collect(), Box::new(guard)))
                    },
                    Err(err) => Err(format!("failed to initialize networking: {}", err))
                }
            },
        }
    }
/// Attempts to assemble the described communication infrastructure.
Attempts to assemble the described communication infrastructure.
Attempts to assemble the described communication infrastructure .
pub fn try_build(self) -> Result<(Vec<GenericBuilder>, Box<dyn Any+Send>), String> {
        match self {
            Config::Thread => {
                Ok((vec![GenericBuilder::Thread(ThreadBuilder)], Box::new(())))
            },
            Config::Process(threads) => {
                Ok((Process::new_vector(threads).into_iter().map(|x| GenericBuilder::Process(x)).collect(), Box::new(())))
            },
            Config::ProcessBinary(threads) => {
                Ok((ProcessBuilder::new_vector(threads).into_iter().map(|x| GenericBuilder::ProcessBinary(x)).collect(), Box::new(())))
            },
            Config::Cluster { threads, process, addresses, report, log_fn } => {
                match initialize_networking(addresses, process, threads, report, log_fn) {
                    Ok((stuff, guard)) => {
                        Ok((stuff.into_iter().map(|x| GenericBuilder::ZeroCopy(x)).collect(), Box::new(guard)))
                    },
                    Err(err) => Err(format!("failed to initialize networking: {}", err))
                }
            },
        }
    }
pub fn try_build ( self ) -> Result < ( Vec < GenericBuilder > , Box < dyn Any + Send > ) , String > { match self { Config :: Thread => { Ok ( ( vec ! [ GenericBuilder Thread ( ThreadBuilder ) ] , Box :: new ( ( ) ) ) ) } , Config :: Process ( threads ) => { Ok ( ( Process :: new_vector ( threads ) . into_iter ( ) . map ( | x | GenericBuilder :: Process ( x ) ) . collect ( ) , Box :: new ( ( ) ) ) ) } , Config :: ProcessBinary ( threads ) => { Ok ( ( ProcessBuilder :: new_vector ( threads ) . into_iter ( ) . map ( | x | GenericBuilder :: ProcessBinary ( x ) ) . collect ( ) , Box :: new ( ( ) ) ) ) } , Config :: Cluster { threads , process , addresses , report , log_fn } => { match initialize_networking ( addresses , process , threads , report , log_fn ) { Ok ( ( stuff , guard ) ) => { Ok ( ( stuff . into_iter ( ) . map ( | x | GenericBuilder :: ZeroCopy ( x ) ) . collect ( ) , Box :: new ( guard ) ) ) } , Err ( err ) => Err ( format ! ( " " err ) ) } } , } }
Attempts to assemble the described communication infrastructure.
Attempts to assemble the described communication infrastructure .
self