pub struct Logger { /* private fields */ }Expand description
Ported from the unexported logger struct.
Implementations§
Source§impl Logger
impl Logger
Sourcepub fn info(&mut self, msg: &str)
pub fn info(&mut self, msg: &str)
Ported from logger.Info. Go’s variadic args ...any (formatted
via fmt.Sprintf or overseer.Attrs) is replaced with a single
pre-formatted message, since Rust has no direct ...any +
printf-style runtime formatting equivalent without pulling in a
dedicated crate; callers use format!() before calling this. See
PORT_NOTES.md.
Auto Trait Implementations§
impl !RefUnwindSafe for Logger
impl !Sync for Logger
impl !UnwindSafe for Logger
impl Freeze for Logger
impl Send for Logger
impl Unpin for Logger
impl UnsafeUnpin for Logger
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 more