pub struct InMemorySyncProtocol { /* private fields */ }Expand description
In-memory sync protocol for testing and single-process scenarios.
Implementations§
Trait Implementations§
Source§impl Clone for InMemorySyncProtocol
impl Clone for InMemorySyncProtocol
Source§fn clone(&self) -> InMemorySyncProtocol
fn clone(&self) -> InMemorySyncProtocol
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InMemorySyncProtocol
impl Debug for InMemorySyncProtocol
Source§impl Default for InMemorySyncProtocol
impl Default for InMemorySyncProtocol
Source§impl SyncProtocol for InMemorySyncProtocol
impl SyncProtocol for InMemorySyncProtocol
Source§fn send_event(
&self,
_target: &NodeId,
event: &SyncEvent,
) -> Result<(), AdapterError>
fn send_event( &self, _target: &NodeId, event: &SyncEvent, ) -> Result<(), AdapterError>
Send an event to a specific node.
Source§fn broadcast_event(&self, event: &SyncEvent) -> Result<(), AdapterError>
fn broadcast_event(&self, event: &SyncEvent) -> Result<(), AdapterError>
Broadcast an event to all nodes.
Source§fn receive_events(&self) -> Result<Vec<SyncEvent>, AdapterError>
fn receive_events(&self) -> Result<Vec<SyncEvent>, AdapterError>
Receive pending events from the network.
Auto Trait Implementations§
impl Freeze for InMemorySyncProtocol
impl RefUnwindSafe for InMemorySyncProtocol
impl Send for InMemorySyncProtocol
impl Sync for InMemorySyncProtocol
impl Unpin for InMemorySyncProtocol
impl UnwindSafe for InMemorySyncProtocol
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more