pub struct Ready {
pub udp: bool,
pub tun: bool,
}Expand description
Which of the two watched fds became readable in the last Epoll::wait.
Both may be set (both fds ready), or neither (the wait timed out — the
driver should still run its timer/tick work).
Fields§
§udp: boolThe UDP socket has at least one datagram to read.
tun: boolThe TUN/TAP device has at least one frame to read.
Trait Implementations§
impl Copy for Ready
impl Eq for Ready
impl StructuralPartialEq for Ready
Auto Trait Implementations§
impl Freeze for Ready
impl RefUnwindSafe for Ready
impl Send for Ready
impl Sync for Ready
impl Unpin for Ready
impl UnsafeUnpin for Ready
impl UnwindSafe for Ready
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