pub struct PollEntry { /* private fields */ }Expand description
The layout of a single entry passed to crate::syscalls::SyscallTable::SysIOPoll.
Implementations§
Source§impl PollEntry
impl PollEntry
pub const fn new(resource: u32, events: PollEvents) -> Self
Sourcepub const fn events(&self) -> PollEvents
pub const fn events(&self) -> PollEvents
Returns the events associated with this poll entry.
Sourcepub const fn returned_events(&self) -> PollEvents
pub const fn returned_events(&self) -> PollEvents
Returns the events that were returned by the poll operation.
Sourcepub const fn returned_events_mut(&mut self) -> &mut PollEvents
pub const fn returned_events_mut(&mut self) -> &mut PollEvents
Returns a mutable reference to the events that were returned by the poll operation.
Trait Implementations§
impl Copy for PollEntry
impl Eq for PollEntry
impl StructuralPartialEq for PollEntry
Auto Trait Implementations§
impl Freeze for PollEntry
impl RefUnwindSafe for PollEntry
impl Send for PollEntry
impl Sync for PollEntry
impl Unpin for PollEntry
impl UnsafeUnpin for PollEntry
impl UnwindSafe for PollEntry
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