Skip to main content

SessionSource

Trait SessionSource 

Source
pub trait SessionSource {
    // Required method
    fn excerpts(
        &self,
        repo_path: &Path,
        branch: &str,
        window: (DateTime<Utc>, DateTime<Utc>),
        max_sessions: usize,
        max_kb: u64,
    ) -> Result<Vec<SessionExcerpt>>;
}

Required Methods§

Source

fn excerpts( &self, repo_path: &Path, branch: &str, window: (DateTime<Utc>, DateTime<Utc>), max_sessions: usize, max_kb: u64, ) -> Result<Vec<SessionExcerpt>>

Excerpts of the sessions most relevant to the branch. window: commit time range of the branch (sessions outside it that do not mention the branch are discarded).

§Errors

Returns an error if the projects directory cannot be read.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§