pub struct BinlogFile<I: Seek + Read> { /* private fields */ }
Expand description
Low level wrapper around a single Binlog file. Use this if you want to introspect all events (including internal events like the FDE and TME)
Implementations§
Source§impl BinlogFile<File>
impl BinlogFile<File>
Sourcepub fn try_from_path<R: AsRef<Path>>(path: R) -> Result<Self, BinlogParseError>
pub fn try_from_path<R: AsRef<Path>>(path: R) -> Result<Self, BinlogParseError>
Construct a new BinLogFile from the given path
Opens the file and reads/parses the FDE at construction time
Source§impl<I: Seek + Read> BinlogFile<I>
impl<I: Seek + Read> BinlogFile<I>
pub fn try_from_reader(reader: I) -> Result<Self, BinlogParseError>
Sourcepub fn events(self, offset: Option<u64>) -> BinlogEvents<I> ⓘ
pub fn events(self, offset: Option<u64>) -> BinlogEvents<I> ⓘ
Iterate throgh events in this BinLog file, optionally from the given starting offset.
pub fn file_name(&self) -> Option<&Path>
Auto Trait Implementations§
impl<I> Freeze for BinlogFile<I>where
I: Freeze,
impl<I> RefUnwindSafe for BinlogFile<I>where
I: RefUnwindSafe,
impl<I> Send for BinlogFile<I>where
I: Send,
impl<I> Sync for BinlogFile<I>where
I: Sync,
impl<I> Unpin for BinlogFile<I>where
I: Unpin,
impl<I> UnwindSafe for BinlogFile<I>where
I: 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