pub trait TranscriptParser {
// Required method
fn parse(
&self,
path: &Path,
since_iso: Option<&str>,
) -> Result<Vec<ParsedTurn>, ParseError>;
}Expand description
Trait every per-host parser implements. The blanket
crate::recover::recover_from_transcript entry-point dispatches
to the right impl by HostKind.
Required Methods§
Sourcefn parse(
&self,
path: &Path,
since_iso: Option<&str>,
) -> Result<Vec<ParsedTurn>, ParseError>
fn parse( &self, path: &Path, since_iso: Option<&str>, ) -> Result<Vec<ParsedTurn>, ParseError>
Stream-parse a transcript file from disk, filtering to
turns whose timestamp is at or after since_iso when set.
Returns parsed turns in transcript order.
§Errors
Returns an error when the file cannot be opened. Per-line parse errors are NOT propagated — the parser swallows them and surfaces a partial result; SessionStart-hook integration can’t tolerate a single bad line wedging recovery.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".