pub struct Target<'a> {
pub category: &'static str,
pub instance: Option<&'a str>,
}Expand description
A standalone LogSource for logging about a named element from outside it
(the runner naming <category>N), or for an ad-hoc log site.
Fields§
§category: &'static str§instance: Option<&'a str>Implementations§
Trait Implementations§
impl<'a> Copy for Target<'a>
Source§impl LogSource for Target<'_>
impl LogSource for Target<'_>
Source§fn log_category(&self) -> &'static str
fn log_category(&self) -> &'static str
The element type’s category, e.g.
"opusenc", the filtering key.Source§fn log_instance(&self) -> Option<&str>
fn log_instance(&self) -> Option<&str>
The element instance name, e.g.
"opusenc0", for the log line. Default
none (filtering is by category regardless).Source§fn log_category_override(&self) -> Option<&str>
fn log_category_override(&self) -> Option<&str>
A per-instance category override (M845), replacing the type category for
both filtering and output, so
G2G_DEBUG=my-cat:debug (and globs) key
off the override. Default none: the type name is the category. An
element stores one in a LogName and returns it here.Auto Trait Implementations§
impl<'a> Freeze for Target<'a>
impl<'a> RefUnwindSafe for Target<'a>
impl<'a> Send for Target<'a>
impl<'a> Sync for Target<'a>
impl<'a> Unpin for Target<'a>
impl<'a> UnsafeUnpin for Target<'a>
impl<'a> UnwindSafe for Target<'a>
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