pub struct NullBackend;Expand description
A no-op polling backend that never returns events.
Useful for testing timer logic and client management without actual I/O.
Trait Implementations§
Source§impl Debug for NullBackend
impl Debug for NullBackend
Source§impl Default for NullBackend
impl Default for NullBackend
Source§impl PollBackend for NullBackend
impl PollBackend for NullBackend
Source§fn register(
&mut self,
_fd: RawFd,
_events: u32,
_client_id: ClientId,
) -> Result<()>
fn register( &mut self, _fd: RawFd, _events: u32, _client_id: ClientId, ) -> Result<()>
Register a file descriptor for events Read more
Source§fn modify(
&mut self,
_fd: RawFd,
_events: u32,
_client_id: ClientId,
) -> Result<()>
fn modify( &mut self, _fd: RawFd, _events: u32, _client_id: ClientId, ) -> Result<()>
Modify event registration for a file descriptor
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