#[non_exhaustive]pub enum PollFDEvent {
In,
Pri,
Out,
Err,
Hup,
Nval,
}
Expand description
A bitmask of events that Cogl may need to wake on for a file descriptor. Note that these all have the same values as the corresponding defines for the poll function call on Unix so they may be directly passed to poll.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
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§
Source§impl Clone for PollFDEvent
impl Clone for PollFDEvent
Source§fn clone(&self) -> PollFDEvent
fn clone(&self) -> PollFDEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PollFDEvent
impl Debug for PollFDEvent
Source§impl Display for PollFDEvent
impl Display for PollFDEvent
Source§impl Hash for PollFDEvent
impl Hash for PollFDEvent
Source§impl Ord for PollFDEvent
impl Ord for PollFDEvent
Source§fn cmp(&self, other: &PollFDEvent) -> Ordering
fn cmp(&self, other: &PollFDEvent) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PollFDEvent
impl PartialEq for PollFDEvent
Source§impl PartialOrd for PollFDEvent
impl PartialOrd for PollFDEvent
impl Copy for PollFDEvent
impl Eq for PollFDEvent
impl StructuralPartialEq for PollFDEvent
Auto Trait Implementations§
impl Freeze for PollFDEvent
impl RefUnwindSafe for PollFDEvent
impl Send for PollFDEvent
impl Sync for PollFDEvent
impl Unpin for PollFDEvent
impl UnwindSafe for PollFDEvent
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