Struct sst::log::LogIterator
source · pub struct LogIterator<R: Read + Seek> { /* private fields */ }
Expand description
An iterator over logs.
Implementations§
source§impl LogIterator<File>
impl LogIterator<File>
sourcepub fn new<P: AsRef<Path>>(
options: LogOptions,
file_name: P
) -> Result<Self, Error>
pub fn new<P: AsRef<Path>>( options: LogOptions, file_name: P ) -> Result<Self, Error>
Open file_name
using options
as a guide and return a LogIterator.
source§impl<R: Read + Seek> LogIterator<R>
impl<R: Read + Seek> LogIterator<R>
sourcepub fn from_reader(options: LogOptions, reader: R) -> Result<Self, Error>
pub fn from_reader(options: LogOptions, reader: R) -> Result<Self, Error>
Create a new LogIterator from options and a reader.
Auto Trait Implementations§
impl<R> RefUnwindSafe for LogIterator<R>where
R: RefUnwindSafe,
impl<R> Send for LogIterator<R>where
R: Send,
impl<R> Sync for LogIterator<R>where
R: Sync,
impl<R> Unpin for LogIterator<R>where
R: Unpin,
impl<R> UnwindSafe for LogIterator<R>where
R: 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