Skip to main content

MemoryVcs

Type Alias MemoryVcs 

Source
pub type MemoryVcs = Repository<MemoryStore<VcsState>>;
Expand description

A repository provider that keeps its state in this process: no disk, no visibility to a second process, and the fastest of the two.

Its sessions name a worktree under the system temporary directory and do not create it — nothing here touches the filesystem except the event stream, which is the record a journey reads.

Aliased Type§

pub struct MemoryVcs { /* private fields */ }

Implementations§

Source§

impl MemoryVcs

Source

pub fn new() -> Self

A repository provider knowing nothing.

Source

pub fn seeded(state: VcsState) -> Self

A repository provider that starts from a scenario.

Source

pub fn state(&self) -> VcsState

Everything it knows.

Trait Implementations§

Source§

impl Default for MemoryVcs

Source§

fn default() -> Self

Returns the “default value” for a type. Read more