pub struct InMemoryTransport { /* private fields */ }Expand description
In-memory transport for testing
Implementations§
Source§impl InMemoryTransport
impl InMemoryTransport
pub fn new() -> Self
pub fn with_connection_status(connected: bool) -> Self
Trait Implementations§
Source§impl Clone for InMemoryTransport
impl Clone for InMemoryTransport
Source§impl SyncTransport for InMemoryTransport
impl SyncTransport for InMemoryTransport
Auto Trait Implementations§
impl Freeze for InMemoryTransport
impl !RefUnwindSafe for InMemoryTransport
impl Send for InMemoryTransport
impl Sync for InMemoryTransport
impl Unpin for InMemoryTransport
impl !UnwindSafe for InMemoryTransport
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