Function parse_file

Source
pub fn parse_file<P: AsRef<Path>>(
    file_name: P,
) -> Result<EventIterator<File>, BinlogParseError>
Expand description

parse all events in the file living at a given path

ยงErrors

  • returns an immediate error if the file could not be opened or if it does not contain a valid Format Desciptor Event
  • each call to the iterator can return an error if there is an I/O or parsing error