pub struct SimpleProcessor<T> {
pub transformer: T,
pub sink: SinkHandle,
/* private fields */
}
Expand description
Process log lines with Self::transformer
and write them to Self::sink
.
You can use SimpleProcessorBuilder
to create this.
Fields§
§transformer: T
§sink: SinkHandle
Implementations§
Source§impl<T> SimpleProcessor<T>
impl<T> SimpleProcessor<T>
pub fn new(transformer: T, sink: SinkHandle) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for SimpleProcessor<T>where
T: Freeze,
impl<T> RefUnwindSafe for SimpleProcessor<T>where
T: RefUnwindSafe,
impl<T> Send for SimpleProcessor<T>where
T: Send,
impl<T> Sync for SimpleProcessor<T>where
T: Sync,
impl<T> Unpin for SimpleProcessor<T>where
T: Unpin,
impl<T> UnwindSafe for SimpleProcessor<T>where
T: UnwindSafe,
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