pub struct StdinRelay { /* private fields */ }Expand description
epoll-based event multiplexer for stdin, SIGWINCH, and shutdown. Linux equivalent of macOS kqueue-based StdinRelay.
Implementations§
Source§impl StdinRelay
impl StdinRelay
Sourcepub fn new(stdin_fd: RawFd) -> Option<(StdinRelay, ShutdownSignal)>
pub fn new(stdin_fd: RawFd) -> Option<(StdinRelay, ShutdownSignal)>
Create a new relay watching the given stdin fd.
Sourcepub fn wait(&self) -> StdinEvent
pub fn wait(&self) -> StdinEvent
Block until stdin is readable, a resize signal arrives, or shutdown is signaled.
Trait Implementations§
Source§impl Drop for StdinRelay
impl Drop for StdinRelay
Auto Trait Implementations§
impl Freeze for StdinRelay
impl RefUnwindSafe for StdinRelay
impl Send for StdinRelay
impl Sync for StdinRelay
impl Unpin for StdinRelay
impl UnsafeUnpin for StdinRelay
impl UnwindSafe for StdinRelay
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