pub struct NullBackend { /* private fields */ }Expand description
A passive I/O backend that writes to nowhere and reads zeros.
Implements both IoCapture and IoPlayback as no-ops.
Useful as a placeholder for the unused direction in input-only
or output-only scenarios.
Implementations§
Trait Implementations§
Source§impl IoCapture for NullBackend
impl IoCapture for NullBackend
Source§impl IoPlayback for NullBackend
impl IoPlayback for NullBackend
Auto Trait Implementations§
impl Freeze for NullBackend
impl RefUnwindSafe for NullBackend
impl Send for NullBackend
impl Sync for NullBackend
impl Unpin for NullBackend
impl UnsafeUnpin for NullBackend
impl UnwindSafe for NullBackend
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