if self.verbose > 0 {
termprogress::new()
} else {
- termprogress::NullReporter::new()
+ termprogress::Null::new()
}
}
}
id,
};
chan.cmd_withbulk(&cmd, &mut io::empty(), &mut f,
- &mut termprogress::NullReporter)
+ &mut termprogress::Null)
.context("download bundle")?;
f.flush().context("flush bundle file")?;
if let Some((path, tmp)) = path_tmp {
#[throws(AE)]
pub fn cmd(&mut self, cmd: &MgmtCommand) -> MgmtResponse {
self.cmd_withbulk(cmd, &mut io::empty(), &mut io::sink(),
- &mut termprogress::NullReporter)?
+ &mut termprogress::Null)?
}
pub fn read_inner_mut(&mut self) -> &mut TimedFdReader {
fn clear(&mut self);
}
-pub struct NullReporter;
-impl NullReporter {
- pub fn new() -> Box<dyn Reporter> { Box::new(NullReporter) }
+pub struct Null;
+impl Null {
+ pub fn new() -> Box<dyn Reporter> { Box::new(Null) }
}
#[allow(unused_variables)]
-impl Reporter for NullReporter {
+impl Reporter for Null {
fn report(&mut self, pi: &ProgressInfo<'_>) { }
fn clear(&mut self) { }
}
spinner: 0,
})
} else {
- Box::new(NullReporter)
+ Box::new(Null)
}
}