Skip to main content

Local

Trait Local 

Source
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§

Source

fn cursors(&self) -> Result<Vec<(String, u64)>>

Source

fn set_cursor(&self, peer_id: &str, last_seq: u64) -> Result<()>

Source

fn import(&self, header: &SyncHeader, records: &[Value]) -> Result<Imported>

header is the stream’s, sent by the peer, not this machine’s.

Source

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".

Implementors§