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§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl SyncTransport for HttpRelayTransport
Available on non-WebAssembly only.
impl SyncTransport for InMemoryRelay
impl SyncTransport for Libp2pSyncTransport
Available on non-WebAssembly only.