pub struct InProcessEngineClient<'a> { /* private fields */ }Expand description
The in-process client over an open store: each call is timestamped by
clock (the wall clock by default; a fixture pins it).
Implementations§
Source§impl<'a> InProcessEngineClient<'a>
impl<'a> InProcessEngineClient<'a>
pub fn new(store: &'a mut Store, repo_id: &str) -> Self
Sourcepub fn with_config(self, config: Config) -> Self
pub fn with_config(self, config: Config) -> Self
The matcher thresholds every observe uses.
Sourcepub fn with_clock(self, clock: impl FnMut() -> String + 'a) -> Self
pub fn with_clock(self, clock: impl FnMut() -> String + 'a) -> Self
Replace the wall clock.
pub fn store(&self) -> &Store
pub fn repo_id(&self) -> &str
Trait Implementations§
Source§impl Debug for InProcessEngineClient<'_>
impl Debug for InProcessEngineClient<'_>
Source§impl EngineClient for InProcessEngineClient<'_>
impl EngineClient for InProcessEngineClient<'_>
Source§fn observe_many(&mut self, files: &[FileBytes]) -> Result<Vec<ObserveOutcome>>
fn observe_many(&mut self, files: &[FileBytes]) -> Result<Vec<ObserveOutcome>>
Observe whole-file bytes as observed commits (echo-suppressed
engine-side), one batch, then sweep the pool.
Source§fn observe_delete(&mut self, path: &str) -> Result<DeleteOutcome>
fn observe_delete(&mut self, path: &str) -> Result<DeleteOutcome>
Mirror a source-side deletion (tombstone, then sweep).
Source§fn changes_since(
&mut self,
cursor: i64,
limit: Option<usize>,
origin: Option<&str>,
) -> Result<ChangesPage>
fn changes_since( &mut self, cursor: i64, limit: Option<usize>, origin: Option<&str>, ) -> Result<ChangesPage>
The repo’s change feed after
cursor (§6).Auto Trait Implementations§
impl<'a> !RefUnwindSafe for InProcessEngineClient<'a>
impl<'a> !Send for InProcessEngineClient<'a>
impl<'a> !Sync for InProcessEngineClient<'a>
impl<'a> !UnwindSafe for InProcessEngineClient<'a>
impl<'a> Freeze for InProcessEngineClient<'a>
impl<'a> Unpin for InProcessEngineClient<'a>
impl<'a> UnsafeUnpin for InProcessEngineClient<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more