Skip to main content

SessionEvidence

Trait SessionEvidence 

Source
pub trait SessionEvidence {
    // Required methods
    fn line_time(&self, transcript: &str, text: &str) -> Option<DateTime<Utc>>;
    fn first_time(&self, transcript: &str) -> Option<DateTime<Utc>>;
    fn note_modified_at(&self, path: &str) -> Option<DateTime<Utc>>;
}
Expand description

Session evidence that lives outside the store: transcripts and note files, which only the machine that captured the sessions has.

Required Methods§

Source

fn line_time(&self, transcript: &str, text: &str) -> Option<DateTime<Utc>>

Time of the line in the transcript at transcript that holds text.

Source

fn first_time(&self, transcript: &str) -> Option<DateTime<Utc>>

Time of the first timestamped line in the transcript.

Source

fn note_modified_at(&self, path: &str) -> Option<DateTime<Utc>>

Modification time of the note file at path. None for a transcript, whose mtime is its last line rather than when its content was said.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§