pub struct Poll { /* private fields */ }
Expand description
A polling API, similar to Linux’s epoll
.
Implementations§
Source§impl Poll
impl Poll
Sourcepub fn from_handle(handle: OwnedHandle) -> Poll
pub fn from_handle(handle: OwnedHandle) -> Poll
Creates a polling API from the given handle.
Sourcepub fn add(
&self,
handle: HandleId,
interests: PollEvent,
) -> Result<(), FtlError>
pub fn add( &self, handle: HandleId, interests: PollEvent, ) -> Result<(), FtlError>
Adds a handle to watch for events.
Auto Trait Implementations§
impl Freeze for Poll
impl RefUnwindSafe for Poll
impl Send for Poll
impl Sync for Poll
impl Unpin for Poll
impl UnwindSafe for Poll
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