[−][src]Struct metrics_distributor::collectors::http::LogDrainHandler
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]
store: SharedStore,
readers: Vec<Box<dyn LogLineReader>>
) -> LogDrainHandler
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]
fn handle(&self, req: &mut Request) -> IronResult<Response>
[src]
Auto Trait Implementations
impl !RefUnwindSafe for LogDrainHandler
impl Send for LogDrainHandler
impl Sync for LogDrainHandler
impl Unpin for LogDrainHandler
impl !UnwindSafe for LogDrainHandler
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<F> Handler for F where
F: Send + Sync + 'static + Fn(&mut Request) -> Result<Response, IronError>,
[src]
F: Send + Sync + 'static + Fn(&mut Request) -> Result<Response, IronError>,
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Typeable for T where
T: Any,
T: Any,
impl<T> UnsafeAny for T where
T: Any,
T: Any,