Skip to main content

apply_remote

Function apply_remote 

Source
pub fn apply_remote(
    conn: &Connection,
    rec: &Record,
    pins: &Pins,
    clock: &mut Clock,
    now_ms: i64,
    adapter: &dyn Adapter,
) -> Result<Outcome, SyncError>
Expand description

A record from another machine. Refused unless it is at this collection’s key epoch, from a pinned origin, correctly signed, not too far ahead of this clock and the next in its origin’s sequence; applying one already held changes nothing. The adapter says whether it becomes the record’s state.