pub struct NoopCommunicationBackend;Expand description
A no-op implementation of the CommunicationBackend trait.
Sending discards messages silently and receiving blocks forever (the future never resolves). This is useful as a default backend for platforms that do not need IPC communication.
Trait Implementations§
Source§impl CommunicationBackend for NoopCommunicationBackend
impl CommunicationBackend for NoopCommunicationBackend
type SendError = Infallible
type Receiver = NoopCommunicationBackendReceiver
Auto Trait Implementations§
impl Freeze for NoopCommunicationBackend
impl RefUnwindSafe for NoopCommunicationBackend
impl Send for NoopCommunicationBackend
impl Sync for NoopCommunicationBackend
impl Unpin for NoopCommunicationBackend
impl UnsafeUnpin for NoopCommunicationBackend
impl UnwindSafe for NoopCommunicationBackend
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