[−][src]Struct poller::Events
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]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,