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 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>
Auto Trait Implementations
impl<'context, Context> RefUnwindSafe for EventVec<'context, Context>
where
Context: RefUnwindSafe,impl<'context, Context> UnwindSafe for EventVec<'context, Context>
where
Context: RefUnwindSafe,Blanket Implementations
impl<T> BorrowMut<T> for T
where
T: ?Sized,
where
T: ?Sized,
fn borrow_mut(&mut Self) -> &mut T