[][src]Struct emit::pipeline::reference::PipelineRef

pub struct PipelineRef { /* fields omitted */ }

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.