#[non_exhaustive]
pub enum PollFDEvent {
In,
Pri,
Out,
Err,
Hup,
Nval,
}
Expand description
A bitmask of events that may need to wake on for a file descriptor.
Note that these all have the same values as the corresponding defines for the poll fn call on Unix so they may be directly passed to poll.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
In
there is data to read
Pri
data can be written (without blocking)
Out
there is urgent data to read.
Err
error condition
Hup
hung up (the connection has been broken, usually for pipes and sockets).
Nval
invalid request. The file descriptor is not open.
Trait Implementations
sourceimpl Clone for PollFDEvent
impl Clone for PollFDEvent
sourcefn clone(&self) -> PollFDEvent
fn clone(&self) -> PollFDEvent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PollFDEvent
impl Debug for PollFDEvent
sourceimpl Display for PollFDEvent
impl Display for PollFDEvent
sourceimpl Hash for PollFDEvent
impl Hash for PollFDEvent
sourceimpl Ord for PollFDEvent
impl Ord for PollFDEvent
sourceimpl PartialEq<PollFDEvent> for PollFDEvent
impl PartialEq<PollFDEvent> for PollFDEvent
sourceimpl PartialOrd<PollFDEvent> for PollFDEvent
impl PartialOrd<PollFDEvent> for PollFDEvent
sourcefn partial_cmp(&self, other: &PollFDEvent) -> Option<Ordering>
fn partial_cmp(&self, other: &PollFDEvent) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for PollFDEvent
impl Eq for PollFDEvent
impl StructuralEq for PollFDEvent
impl StructuralPartialEq for PollFDEvent
Auto Trait Implementations
impl RefUnwindSafe for PollFDEvent
impl Send for PollFDEvent
impl Sync for PollFDEvent
impl Unpin for PollFDEvent
impl UnwindSafe for PollFDEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Clamp<T> for T where
T: PartialOrd<T>,
impl<T> Clamp<T> for T where
T: PartialOrd<T>,
fn clamped(self, min: T, max: T) -> T
sourceimpl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
sourcefn into_color(self) -> To
fn into_color(self) -> To
Convert into color
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.