pub struct PollHandle { /* private fields */ }Implementations§
Source§impl PollHandle
impl PollHandle
pub fn new() -> Result<Self>
pub fn register<H, S>( &self, src: &mut S, token: Token, interest: Interest, handler: H, ) -> Result<()>
pub fn deregister<S>(&self, source: &mut S, token: Token) -> Result<()>
pub fn poll( &self, events: &mut Events, timeout: Option<Duration>, ) -> Result<usize>
pub fn wake(&self) -> Result<()>
pub fn get_registery(&self) -> Arc<Map<Token, HandlerEntry>>
Auto Trait Implementations§
impl Freeze for PollHandle
impl !RefUnwindSafe for PollHandle
impl Send for PollHandle
impl Sync for PollHandle
impl Unpin for PollHandle
impl UnsafeUnpin for PollHandle
impl !UnwindSafe for PollHandle
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