pub fn save_snapshot(snapshot: &mut Snapshot, snapfile: &PathBuf, retention: u64) {
    debug!("saving snapshot file {}", &snapfile.display());
    if let Err(e) = snapshot.save(&snapfile, retention) {
        Nagios::exit_critical(&format!(
            "unable to save snapshot file: {:?}, error: {}",
            &snapfile, e
        ));
    }
}
/// Saves snapshot file into provided path
Saves snapshot file into provided path
Saves snapshot file into provided path
pub fn save_snapshot(snapshot: &mut Snapshot, snapfile: &PathBuf, retention: u64) {
    debug!("saving snapshot file {}", &snapfile.display());
    if let Err(e) = snapshot.save(&snapfile, retention) {
        Nagios::exit_critical(&format!(
            "unable to save snapshot file: {:?}, error: {}",
            &snapfile, e
        ));
    }
}
pub fn save_snapshot ( snapshot : & mut Snapshot , snapfile : & PathBuf , retention : u64 ) { debug ! ( " " snapfile display ( ) ) ; if let Err ( e ) = snapshot . save ( & snapfile , retention ) { Nagios :: exit_critical ( & format ! ( " " snapfile e ) ) ; } }
Saves snapshot file into provided path
Saves snapshot file into provided path
snapshot
&mut Snapshot
snapfile
&PathBuf
retention
u64
snapshot
&mut Snapshot
snapfile
&PathBuf
retention
u64