pub struct FileSink {
    pub path: Option<String>,
}Expand description
Writes each record value as a single JSON line to stdout or a file.
Fields§
§path: Option<String>Implementations§
Trait Implementations§
Source§impl Sink for FileSink
 
impl Sink for FileSink
fn on_element<'life0, 'async_trait>(
    &'life0 mut self,
    record: Record,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
fn on_watermark<'life0, 'async_trait>(
    &'life0 mut self,
    _wm: Watermark,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
    'life0: 'async_trait,
    Self: 'async_trait,
Auto Trait Implementations§
impl Freeze for FileSink
impl RefUnwindSafe for FileSink
impl Send for FileSink
impl Sync for FileSink
impl Unpin for FileSink
impl UnwindSafe for FileSink
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