pub struct FdInterest {
pub fd: i32,
pub read: bool,
pub write: bool,
}Expand description
A descriptor the host has to poll, and which directions have a handler.
The engine cannot poll for itself: quickjs-pure has no dependencies and no platform
knowledge, and poll(2) is neither. So the loop hands this list to the host, the host
blocks on it, and the host reports back through Interp::fire_fd.
Fields§
§fd: i32The descriptor to watch.
read: boolWhether os.setReadHandler registered a callback.
write: boolWhether os.setWriteHandler registered a callback.
Trait Implementations§
Source§impl Clone for FdInterest
impl Clone for FdInterest
impl Copy for FdInterest
Source§impl Debug for FdInterest
impl Debug for FdInterest
impl Eq for FdInterest
Source§impl PartialEq for FdInterest
impl PartialEq for FdInterest
impl StructuralPartialEq for FdInterest
Auto Trait Implementations§
impl Forget for FdInterest
impl Freeze for FdInterest
impl Move for FdInterest
impl RefUnwindSafe for FdInterest
impl Send for FdInterest
impl Sync for FdInterest
impl Unpin for FdInterest
impl UnsafeUnpin for FdInterest
impl UnwindSafe for FdInterest
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