#[repr(C)]pub struct PollSimple {
pub ready: bool,
}Expand description
Indicates if a future has been completed. Should be an enum, but kept as a struct for symmetry with PollVec
Fields§
§ready: boolTrait Implementations§
Source§impl CheckedBitPattern for PollSimple
impl CheckedBitPattern for PollSimple
Source§type Bits = PollSimpleBits
type Bits = PollSimpleBits
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(bits: &PollSimpleBits) -> bool
fn is_valid_bit_pattern(bits: &PollSimpleBits) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.Source§impl Clone for PollSimple
impl Clone for PollSimple
Source§fn clone(&self) -> PollSimple
fn clone(&self) -> PollSimple
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 PollSimple
impl Debug for PollSimple
Source§impl Default for PollSimple
impl Default for PollSimple
Source§fn default() -> PollSimple
fn default() -> PollSimple
Returns the “default value” for a type. Read more
impl Copy for PollSimple
impl NoUninit for PollSimple
Auto Trait Implementations§
impl Freeze for PollSimple
impl RefUnwindSafe for PollSimple
impl Send for PollSimple
impl Sync for PollSimple
impl Unpin for PollSimple
impl UnwindSafe for PollSimple
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