[][src]Struct libzmq::poll::Events

pub struct Events { /* fields omitted */ }

A vector of Event detected while polling.

Methods

impl Events[src]

pub fn new() -> Self[src]

Creates a new empty event vector.

pub fn with_capacity(capacity: usize) -> Self[src]

Create a new event vector with the specified capacity.

pub fn capacity(&self) -> usize[src]

Returns the capacity of the event vector.

pub fn is_empty(&self) -> bool[src]

Returns true is the event vector contains no events.

Important traits for Iter<'a>
pub fn iter(&self) -> Iter[src]

Returns an iterator over the Event in the event vector.

pub fn clear(&mut self)[src]

Empties the event vector.

Trait Implementations

impl Eq for Events[src]

impl PartialEq<Events> for Events[src]

impl Clone for Events[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Default for Events[src]

impl<'a> IntoIterator for &'a Events[src]

type Item = Event

The type of the elements being iterated over.

type IntoIter = Iter<'a>

Which kind of iterator are we turning this into?

impl IntoIterator for Events[src]

type Item = Event

The type of the elements being iterated over.

type IntoIter = IntoIter

Which kind of iterator are we turning this into?

impl Debug for Events[src]

impl Hash for Events[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl !Send for Events

impl !Sync for Events

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]