pub struct LogWriter { /* private fields */ }Implementations§
Source§impl LogWriter
impl LogWriter
Sourcepub async fn new(
log_path_opt: Option<&Path>,
use_stdout: bool,
format: OutputFormat,
) -> Result<Self>
pub async fn new( log_path_opt: Option<&Path>, use_stdout: bool, format: OutputFormat, ) -> Result<Self>
Creates a new LogWriter.
If log_path_opt is provided, output goes to that file.
Otherwise, if use_stdout is true, output goes to stdout.
If both are false/None, no output is produced.
Sourcepub async fn silent() -> Result<Self>
pub async fn silent() -> Result<Self>
Creates a silent LogWriter that produces no output, using the default format. Convenience constructor primarily for tests.
pub async fn log_mismatch( &self, cmp_result: CompareResult, src_obj_type: Option<ObjType>, src: &Path, dst_obj_type: Option<ObjType>, dst: &Path, ) -> Result<()>
pub async fn flush(&self) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LogWriter
impl !RefUnwindSafe for LogWriter
impl Send for LogWriter
impl Sync for LogWriter
impl Unpin for LogWriter
impl UnsafeUnpin for LogWriter
impl !UnwindSafe for LogWriter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request