[][src]Struct metrics_distributor::collectors::http::LogDrainHandler

pub struct LogDrainHandler { /* fields omitted */ }

Accepts HTTP requests and reads lines from the body. Each line will be passed to its set of readers and any metrics collected by those readers will be recorded in the store.

Methods

impl LogDrainHandler[src]

pub fn new(
    store: SharedStore,
    readers: Vec<Box<dyn LogLineReader>>
) -> LogDrainHandler
[src]

Create a new handler with the given vector of readers. Each reader will be called on every line the handler receives.

Trait Implementations

impl Handler for LogDrainHandler[src]

Auto Trait Implementations

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<F> Handler for F where
    F: Send + Sync + 'static + Fn(&mut Request) -> Result<Response, IronError>, 
[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.

impl<T> Typeable for T where
    T: Any

impl<T> UnsafeAny for T where
    T: Any