sos-sync 0.17.0

Sync types and traits for the Save Our Secrets SDK
Documentation
#![deny(missing_docs)]
#![forbid(unsafe_code)]
#![cfg_attr(all(doc, CHANNEL_NIGHTLY), feature(doc_auto_cfg))]
//! Core types and traits for sync and merge operations; part of the
//! [Save Our Secrets](https://saveoursecrets.com) SDK.
mod error;
mod traits;
mod types;

pub use error::Error;

pub use traits::*;
pub use types::*;

/// Result type for the library.
pub(crate) type Result<T> = std::result::Result<T, Error>;

/// Direction of a sync.
#[derive(Debug, Clone, Copy)]
pub enum SyncDirection {
    /// Create accounts on remote from the local.
    ///
    /// Used when a local account is pushing data to
    /// a server for syncing with other devices.
    Push,
    /// Create accounts on local from the remote.
    ///
    /// Used by in-memory implementations without
    /// networking suppport.
    Pull,
}