pub struct MemoryTransport { /* private fields */ }Expand description
In-memory transport for testing sync sessions.
Uses mpsc channels for bidirectional communication.
Thread-safe (Send + Sync) so each side can be shared with a
scoped thread via &self.
Create a connected pair with MemoryTransport::pair().
Implementations§
Trait Implementations§
Source§impl SyncTransport for MemoryTransport
impl SyncTransport for MemoryTransport
Auto Trait Implementations§
impl !Freeze for MemoryTransport
impl RefUnwindSafe for MemoryTransport
impl Send for MemoryTransport
impl Sync for MemoryTransport
impl Unpin for MemoryTransport
impl UnsafeUnpin for MemoryTransport
impl UnwindSafe for MemoryTransport
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