pub struct Poll { /* private fields */ }Implementations§
Source§impl Poll
impl Poll
pub fn new() -> Result<Poll>
pub fn register<E>( &mut self, io: &E, token: Token, interest: EventSet, opts: PollOpt, ) -> Result<()>
pub fn reregister<E>( &mut self, io: &E, token: Token, interest: EventSet, opts: PollOpt, ) -> Result<()>
pub fn deregister<E>(&mut self, io: &E) -> Result<()>
pub fn poll(&mut self, timeout_ms: Option<usize>) -> Result<usize>
pub fn event(&self, idx: usize) -> IoEvent
pub fn events(&self) -> Events<'_> ⓘ
Trait Implementations§
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