pub struct RingEventFd { /* private fields */ }Expand description
Process-local fd readiness bridge for one shared Orbit ring.
The established name is retained on macOS, where a nonblocking pipe backs
the fd. Native macOS readiness requires 14.4 or later; older systems return
ErrorKind::Unsupported from construction so callers can use polling.
Every subscribing process creates its own instance. Ring publishers bump a generation stored in SHM and wake all platform waiters; the local driver then marks this fd readable. Multiple publishes may coalesce into one wake, so a consumer must drain the fd and poll the ring through its own cursor.
Implementations§
Trait Implementations§
Source§impl AsFd for RingEventFd
impl AsFd for RingEventFd
Source§fn as_fd(&self) -> BorrowedFd<'_>
fn as_fd(&self) -> BorrowedFd<'_>
Borrows the file descriptor. Read more
Source§impl AsRawFd for RingEventFd
impl AsRawFd for RingEventFd
Source§impl Debug for RingEventFd
impl Debug for RingEventFd
Source§impl Drop for RingEventFd
impl Drop for RingEventFd
Auto Trait Implementations§
impl !RefUnwindSafe for RingEventFd
impl !UnwindSafe for RingEventFd
impl Freeze for RingEventFd
impl Send for RingEventFd
impl Sync for RingEventFd
impl Unpin for RingEventFd
impl UnsafeUnpin for RingEventFd
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