[][src]Struct poller::Events

pub struct Events(_);

定义事件集合。

Examples

use poller::Events;
let events = Events::new().with_read();

Implementations

impl Events[src]

pub fn new() -> Self[src]

创建一个新的事件集合。

pub fn none(self) -> Self[src]

清空当前值且返回一个空事件集合。

pub fn read(self) -> Self[src]

附加数据到达事件到集合中。

pub fn write(self) -> Self[src]

附加目标可写事件到集合中。

pub fn error(self) -> Self[src]

附加发生错误事件到集合中。

pub fn is_none(self) -> bool[src]

检查集合是否为空。

pub fn has_read(self) -> bool[src]

检查集合是否有数据到达事件。

pub fn has_write(self) -> bool[src]

检查集合是否有目标可写事件。

pub fn has_error(self) -> bool[src]

检查集合是否有发生错误事件。

Trait Implementations

impl Clone for Events[src]

impl Copy for Events[src]

impl Debug for Events[src]

impl Default for Events[src]

impl Display for Events[src]

impl Eq for Events[src]

impl From<u32> for Events[src]

impl Hash for Events[src]

impl Into<u32> for Events[src]

impl PartialEq<Events> for Events[src]

impl StructuralEq for Events[src]

impl StructuralPartialEq for Events[src]

Auto Trait Implementations

impl RefUnwindSafe for Events

impl Send for Events

impl Sync for Events

impl Unpin for Events

impl UnwindSafe for Events

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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.