pub struct LogWriter { /* private fields */ }Implementations§
Source§impl LogWriter
impl LogWriter
Sourcepub async fn new(log_path_opt: Option<&Path>, use_stdout: bool) -> Result<Self>
pub async fn new(log_path_opt: Option<&Path>, use_stdout: bool) -> 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.
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 !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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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