pub struct MockChannel { /* private fields */ }Expand description
Channel implementation for a mock system.
This is what allows the mock system to be used with connections.
Implementations§
Source§impl MockChannel
impl MockChannel
Sourcepub fn new(system: Arc<Mutex<MockHeosSystem>>) -> Self
pub fn new(system: Arc<Mutex<MockHeosSystem>>) -> Self
Create a new channel.
Trait Implementations§
Source§impl ChannelBackend for MockChannel
impl ChannelBackend for MockChannel
Auto Trait Implementations§
impl !RefUnwindSafe for MockChannel
impl !UnwindSafe for MockChannel
impl Freeze for MockChannel
impl Send for MockChannel
impl Sync for MockChannel
impl Unpin for MockChannel
impl UnsafeUnpin for MockChannel
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