pub struct Poll { /* private fields */ }Implementations§
Source§impl Poll
impl Poll
pub fn new(capacity: usize) -> Self
pub fn register( &mut self, fd: RawFdType, key: usize, event: SOCKET_EVENT, post_event: bool, ) -> RESULT
pub fn deregister(&mut self, fd: RawFdType) -> RESULT
pub fn poll(&mut self, wait_msec: u32) -> Option<Vec<socket_event_t>>
pub fn capacity(&self) -> usize
pub fn used(&self) -> usize
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