[−][src]Struct zmq::PollItem
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.
Methods
impl<'a> PollItem<'a>
[src]
impl<'a> PollItem<'a>
pub fn from_fd(fd: RawFd) -> PollItem<'a>
[src]
pub fn from_fd(fd: RawFd) -> PollItem<'a>
Construct a PollItem from a non-0MQ socket, given by its file descriptor.
pub fn get_revents(&self) -> PollEvents
[src]
pub fn get_revents(&self) -> PollEvents
Retrieve the events that occurred for this handle.
pub fn is_readable(&self) -> bool
[src]
pub fn is_readable(&self) -> bool
Returns true if the polled socket has messages ready to receive.
pub fn is_writable(&self) -> bool
[src]
pub fn is_writable(&self) -> bool
Returns true if the polled socket can accept messages to be sent without blocking.
pub fn is_error(&self) -> bool
[src]
pub fn is_error(&self) -> bool
Returns true if the polled socket encountered an error condition.
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
try_from
)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Gets the TypeId
of self
. Read more
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,