pub trait SyncTransport {
// Required methods
fn publish(&self, ops: &[SyncOperation]) -> Result<(), String>;
fn pull(&self, since: u64) -> Result<Vec<SyncOperation>, String>;
}Expand description
Moves operations to/from a peer or relay. A dumb pipe — validation is the inbox’s job.
Required Methods§
Implementors§
impl SyncTransport for HttpRelayTransport
Available on non-WebAssembly only.
impl SyncTransport for InMemoryRelay
impl SyncTransport for Libp2pSyncTransport
Available on non-WebAssembly only.