pub struct Poller { /* private fields */ }Implementations§
Source§impl Poller
impl Poller
pub fn new() -> Result<Self>
pub fn add(&self, fd: i32, read: bool, write: bool) -> Result<()>
pub fn modify(&self, fd: i32, read: bool, write: bool) -> Result<()>
pub fn delete(&self, fd: i32) -> Result<()>
pub fn wait( &self, out: &mut Vec<Event>, timeout_ms: Option<i32>, ) -> Result<usize>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Poller
impl RefUnwindSafe for Poller
impl Send for Poller
impl Sync for Poller
impl Unpin for Poller
impl UnsafeUnpin for Poller
impl UnwindSafe for Poller
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