pub fn send_until_success(req: CRequest) -> CResult {
    loop {
        match send(req.clone()) {
            Some(result) => {
                break result;
            }
            None => thread::sleep(Duration::from_millis(50)),
        }
    }
}
// Loop until there is a Result.
Loop until there is a Result.
Loop until there is a Result .
pub fn send_until_success(req: CRequest) -> CResult {
    loop {
        match send(req.clone()) {
            Some(result) => {
                break result;
            }
            None => thread::sleep(Duration::from_millis(50)),
        }
    }
}
pub fn send_until_success ( req : CRequest ) -> CResult { loop { match send ( req . clone ( ) ) { Some ( result ) => { break result ; } None => thread :: sleep ( Duration :: from_millis ( 50 ) ) , } } }
Loop until there is a Result.
Loop until there is a Result .
req
CRequest