Struct rustix::io::epoll::EventVec

pub struct EventVec<'context, Context: self::Context> { /* fields hidden */ }
Documentation

A vector of Events, plus context for interpreting them.

Implementations

impl<'context, Context: self::Context> EventVec<'context, Context>
pub fn with_capacity(capacity: usize) -> Self

Constructs an EventVec with memory for capacity Events.

pub fn capacity(&Self) -> usize

Returns the current Event capacity of this EventVec.

pub fn reserve(&mut Self, additional: usize)

Reserves enough memory for at least additional more Events.

pub fn reserve_exact(&mut Self, additional: usize)

Reserves enough memory for exactly additional more Events.

pub fn clear(&mut Self)

Clears all the Events out of this EventVec.

pub fn shrink_to_fit(&mut Self)

Shrinks the capacity of this EventVec as much as possible.

pub fn iter(&Self) -> Iter<'_, Context>

Returns an iterator over the Events in this EventVec.

pub fn len(&mut Self) -> usize

Returns the number of Events logically contained in this EventVec.

Trait Implementations

impl<'context, Context: self::Context> IntoIterator for &'context EventVec<'context, Context>
type IntoIter = Iter<'context, Context>
type Item = (EventFlags, Ref<'context, <Context as Context>::Target>)
fn into_iter(Self) -> Self::IntoIter

Auto Trait Implementations

impl<'context, Context> !Send for EventVec<'context, Context>
impl<'context, Context> !Sync for EventVec<'context, Context>
impl<'context, Context> RefUnwindSafe for EventVec<'context, Context>
where
    Context: RefUnwindSafe,
impl<'context, Context> Unpin for EventVec<'context, Context>
impl<'context, Context> UnwindSafe for EventVec<'context, Context>
where
    Context: RefUnwindSafe,

Blanket Implementations

impl<T> Any for T
where
    T: 'static + ?Sized,
fn type_id(&Self) -> TypeId
impl<T> Borrow<T> for T
where
    T: ?Sized,
fn borrow(&Self) -> &T
impl<T> BorrowMut<T> for T
where
    T: ?Sized,
fn borrow_mut(&mut Self) -> &mut T
impl<T> From<T> for T
fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into<U> for T
where
    U: From<T>,
fn into(Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

impl<T, U> TryFrom<U> for T
where
    U: Into<T>,
type Error = Infallible
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for T
where
    U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
fn try_into(Self) -> Result<U, <U as TryFrom<T>>::Error>