pub trait Local {
// Required methods
fn cursors(&self) -> Result<Vec<(String, u64)>>;
fn set_cursor(&self, peer_id: &str, last_seq: u64) -> Result<()>;
fn import(&self, header: &SyncHeader, records: &[Value]) -> Result<Imported>;
fn export(&self, after_seq: u64, limit: usize) -> Result<Exported>;
}Expand description
This machine’s store: sb reaches it through the daemon’s API, the daemon
directly.
Required Methods§
fn cursors(&self) -> Result<Vec<(String, u64)>>
fn set_cursor(&self, peer_id: &str, last_seq: u64) -> Result<()>
Sourcefn import(&self, header: &SyncHeader, records: &[Value]) -> Result<Imported>
fn import(&self, header: &SyncHeader, records: &[Value]) -> Result<Imported>
header is the stream’s, sent by the peer, not this machine’s.
fn export(&self, after_seq: u64, limit: usize) -> Result<Exported>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".