pub struct Selector {
id: usize,
ep: OwnedFd,
}
Fields§
§id: usize
§ep: OwnedFd
Implementations§
source§impl Selector
impl Selector
pub fn new() -> Result<Selector>
pub fn try_clone(&self) -> Result<Selector>
pub fn select( &self, events: &mut Vec<epoll_event>, timeout: Option<Duration>, ) -> Result<()>
pub fn register( &self, fd: RawFd, token: Token, interests: Interest, ) -> Result<()>
pub fn reregister( &self, fd: RawFd, token: Token, interests: Interest, ) -> Result<()>
pub fn deregister(&self, fd: RawFd) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Selector
impl RefUnwindSafe for Selector
impl Send for Selector
impl Sync for Selector
impl Unpin for Selector
impl UnwindSafe for Selector
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