#[repr(C)]
pub struct PollItem<'a> { /* private fields */ }
Expand description

Represents a handle that can be poll()ed.

This is either a reference to a 0MQ socket, or a standard socket. Apart from that it contains the requested event mask, and is updated with the occurred events after poll() finishes.

Implementations

Construct a PollItem from a non-0MQ socket, given by its file descriptor and the events that should be polled.

Change the events to wait for.

Retrieve the events that occurred for this handle.

Returns true if the polled socket has messages ready to receive.

Returns true if the polled socket can accept messages to be sent without blocking.

Returns true if the polled socket encountered an error condition.

Returns true if the polled socket is the given 0MQ socket.

Returns true if the polled socket is the given file descriptor.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.