Skip to main content

serve_sync

Function serve_sync 

Source
pub fn serve_sync<T: SyncTransport>(
    local_events: &[Event],
    transport: &mut T,
) -> Result<(Vec<Event>, SyncReport), T::Error>
Expand description

Respond to a sync request as the remote side.

This is the mirror of sync: it receives the initiator’s data and sends back what they need.

§Errors

Returns T::Error if any transport operation fails.