pub struct CargoWarningFormatter;Expand description
A tracing formatter intended for surfacing compiler
warnings/messages from within a build script.
let () = tracing_subscriber::fmt()
.event_format(CargoWarningFormatter)
.init();
// Generate and build the skeleton, which may emit compiler
// warnings.
SkeletonBuilder::new()
// [...]
.build()
.unwrap();Trait Implementations§
Source§impl Debug for CargoWarningFormatter
impl Debug for CargoWarningFormatter
Source§impl<S, N> FormatEvent<S, N> for CargoWarningFormatter
impl<S, N> FormatEvent<S, N> for CargoWarningFormatter
Source§fn format_event(
&self,
_ctx: &FmtContext<'_, S, N>,
writer: Writer<'_>,
event: &Event<'_>,
) -> Result
fn format_event( &self, _ctx: &FmtContext<'_, S, N>, writer: Writer<'_>, event: &Event<'_>, ) -> Result
Auto Trait Implementations§
impl Freeze for CargoWarningFormatter
impl RefUnwindSafe for CargoWarningFormatter
impl Send for CargoWarningFormatter
impl Sync for CargoWarningFormatter
impl Unpin for CargoWarningFormatter
impl UnwindSafe for CargoWarningFormatter
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