pub fn new(task_name: &'a str, source_name: &'a str) -> Self {
        Self {
            state: MeasureState::Pending,
            task_name,
            source_name,
            bytes_transferred: None,
            creation_time: Instant::now(),
        }
    }
/// Creates a new measure guard for downloading a source.
Creates a new measure guard for downloading a source.
Creates a new measure guard for downloading a source .
pub fn new(task_name: &'a str, source_name: &'a str) -> Self {
        Self {
            state: MeasureState::Pending,
            task_name,
            source_name,
            bytes_transferred: None,
            creation_time: Instant::now(),
        }
    }
pub fn new ( task_name : & ' a str , source_name : & ' a str ) -> Self { Self { state : MeasureState :: Pending , task_name , source_name , bytes_transferred : None , creation_time : Instant :: now ( ) , } }
Creates a new measure guard for downloading a source.
Creates a new measure guard for downloading a source .
task_name
&'a str
source_name
&'a str
task_name
&'a str
source_name
&'a str