pub struct PpLog { /* private fields */ }Expand description
Stable contextual identity attached to a pipeline element’s log records.
Implementations§
Source§impl PpLog
impl PpLog
Sourcepub fn new(element: &str, name: &str, pipeline_id: Option<&str>) -> Self
pub fn new(element: &str, name: &str, pipeline_id: Option<&str>) -> Self
Creates a logging identity.
element is the element type (for example FileDemuxer), while
name is the caller-selected instance name (for example demux).
pipeline_id is omitted until the element is attached to a pipeline.
pub fn pipeline_id(&self) -> Option<&str>
pub fn element(&self) -> &str
pub fn name(&self) -> &str
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PpLog
impl RefUnwindSafe for PpLog
impl Send for PpLog
impl Sync for PpLog
impl Unpin for PpLog
impl UnsafeUnpin for PpLog
impl UnwindSafe for PpLog
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