pub enum ReadStrategy {
Tail,
TailLines,
Replace,
Ignore,
}Expand description
Controls how a file’s contents are read and emitted when it changes.
Variants§
Tail
Emit only bytes appended since the last read, tracking the file offset.
TailLines
Like ReadStrategy::Tail, but buffers incomplete lines and only emits complete lines.
Replace
Emit the entire file contents on every change.
Ignore
Skip this file entirely.
Trait Implementations§
Source§impl Clone for ReadStrategy
impl Clone for ReadStrategy
Source§fn clone(&self) -> ReadStrategy
fn clone(&self) -> ReadStrategy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReadStrategy
impl Debug for ReadStrategy
impl Copy for ReadStrategy
Auto Trait Implementations§
impl Freeze for ReadStrategy
impl RefUnwindSafe for ReadStrategy
impl Send for ReadStrategy
impl Sync for ReadStrategy
impl Unpin for ReadStrategy
impl UnsafeUnpin for ReadStrategy
impl UnwindSafe for ReadStrategy
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