[−][src]Struct emit::pipeline::reference::PipelineRef
PipelineRef
is "mouth" of the pipeline, into which events are fed.
Methods
impl PipelineRef
[src]
pub fn new(head: Box<dyn Emit + Sync>, level: LogLevelFilter) -> PipelineRef
[src]
pub fn is_enabled(&self, level: LogLevel) -> bool
[src]
Check if the specified log level is enabled for the pipeline.
pub fn emit(&self, event: Event<'static>)
[src]
Emit an event through the pipeline. Code wishing to conditionally
emit events based on the level should call is_enabled()
first.
Auto Trait Implementations
impl !RefUnwindSafe for PipelineRef
impl !Send for PipelineRef
impl Sync for PipelineRef
impl Unpin for PipelineRef
impl !UnwindSafe for PipelineRef
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,