/// Spawn a new Arrow Client thread.
Spawn a new Arrow Client thread.
Spawn a new Arrow Client thread .
fn spawn_arrow_thread<L: 'static + Logger + Clone + Send>(
    logger: L,
    state_file: &str,
    ssl_context: SslContext,
    cmd_sender: CommandSender,
    addr: &str,
    arrow_mac: &MacAddr,
    app_context: &Shared<AppContext>) {
    let state_file  = state_file.to_string();
    let addr        = addr.to_string();
    let arrow_mac   = arrow_mac.clone();
    let app_context = app_context.clone();
    thread::spawn(move || arrow_thread(logger, &state_file,
        ssl_context, cmd_sender,
        &addr, &arrow_mac, app_context));
}
fn spawn_arrow_thread < L : ' static + Logger + Clone + Send > ( logger : L , state_file : & str , ssl_context : SslContext , cmd_sender : CommandSender , addr : & str , arrow_mac : & MacAddr , app_context : & Shared < AppContext > ) { let state_file = state_file . to_string ( ) ; let addr = addr . to_string ( ) ; let arrow_mac = arrow_mac . clone ( ) ; let app_context = app_context . clone ( ) ; thread :: spawn ( move | | arrow_thread ( logger , & state_file , ssl_context , cmd_sender , & addr , & arrow_mac , app_context ) ) ; }
Spawn a new Arrow Client thread.
Spawn a new Arrow Client thread .
logger
L
state_file
&str
ssl_context
SslContext
cmd_sender
CommandSender
addr
&str
arrow_mac
&MacAddr
app_context
&Shared<AppContext>