[][src]Struct unix::poll::Poll

#[repr(C)]pub struct Poll {
    pub fd: c_int,
    pub ev: Event,
    // some fields omitted
}

Specify what to poll

Fields

fd: c_int

Which file descriptor to poll

ev: Event

Which events to poll

Implementations

impl Poll[src]

pub fn new(f: &File, ev: Event) -> Self[src]

pub fn ready(self) -> Event[src]

Return which events are ready on the file descriptor.

Trait Implementations

impl Clone for Poll[src]

impl Copy for Poll[src]

impl Debug for Poll[src]

Auto Trait Implementations

impl Send for Poll[src]

impl Sync for Poll[src]

impl Unpin for Poll[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> TryClone for T where
    T: Clone
[src]

type Error = Void

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.