Struct zircon_object::signal::EventPair[][src]

pub struct EventPair { /* fields omitted */ }

Mutually signalable pair of events for concurrent programming

SYNOPSIS

Event Pairs are linked pairs of user-signalable objects. The 8 signal bits reserved for userspace (ZX_USER_SIGNAL_0 through ZX_USER_SIGNAL_7) may be set or cleared on the local or opposing endpoint of an Event Pair.

Implementations

impl EventPair[src]

pub fn create() -> (Arc<Self>, Arc<Self>)[src]

Create a pair of event.

pub fn peer(&self) -> ZxResult<Arc<Self>>[src]

Get the peer event.

Trait Implementations

impl Debug for EventPair[src]

impl Drop for EventPair[src]

impl KernelObject for EventPair[src]

Auto Trait Implementations

impl !RefUnwindSafe for EventPair

impl Send for EventPair

impl Sync for EventPair

impl Unpin for EventPair

impl !UnwindSafe for EventPair

Blanket Implementations

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

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

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

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Send + Sync + Any
[src]

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

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

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.