Struct streamson_lib::handler::output::Output [−][src]
pub struct Output<W> where
W: Write, { /* fields omitted */ }
File handler responsible for storing data to a file.
Implementations
impl<W> Output<W> where
W: Write,
[src]
impl<W> Output<W> where
W: Write,
[src]pub fn set_write_path(self, write_path: bool) -> Self
[src]
pub fn set_write_path(self, write_path: bool) -> Self
[src]pub fn set_separator<S>(self, separator: S) -> Self where
S: ToString,
[src]
pub fn set_separator<S>(self, separator: S) -> Self where
S: ToString,
[src]Trait Implementations
impl<W> Handler for Output<W> where
W: Write + Send + 'static,
[src]
impl<W> Handler for Output<W> where
W: Write + Send + 'static,
[src]fn start(
&mut self,
path: &Path,
_matcher_idx: usize,
_token: Token
) -> Result<Option<Vec<u8>>, Handler>
[src]
fn start(
&mut self,
path: &Path,
_matcher_idx: usize,
_token: Token
) -> Result<Option<Vec<u8>>, Handler>
[src]Is called when a path is matched Read more
fn feed(
&mut self,
data: &[u8],
_matcher_idx: usize
) -> Result<Option<Vec<u8>>, Handler>
[src]
fn feed(
&mut self,
data: &[u8],
_matcher_idx: usize
) -> Result<Option<Vec<u8>>, Handler>
[src]Is called when handler receives some data Read more
fn end(
&mut self,
_path: &Path,
_matcher_idx: usize,
_token: Token
) -> Result<Option<Vec<u8>>, Handler>
[src]
fn end(
&mut self,
_path: &Path,
_matcher_idx: usize,
_token: Token
) -> Result<Option<Vec<u8>>, Handler>
[src]Is called when the path is no longer matched Read more
fn is_converter(&self) -> bool
[src]
fn is_converter(&self) -> bool
[src]Should be handler used to convert data
Auto Trait Implementations
impl<W> RefUnwindSafe for Output<W> where
W: RefUnwindSafe,
W: RefUnwindSafe,
impl<W> Send for Output<W> where
W: Send,
W: Send,
impl<W> Sync for Output<W> where
W: Sync,
W: Sync,
impl<W> Unpin for Output<W> where
W: Unpin,
W: Unpin,
impl<W> UnwindSafe for Output<W> where
W: UnwindSafe,
W: UnwindSafe,