Struct zircon_object::signal::EventPair [−][src]
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]
fn id(&self) -> KoID
[src]
fn type_name(&self) -> &str
[src]
fn name(&self) -> String
[src]
fn set_name(&self, name: &str)
[src]
fn signal(&self) -> Signal
[src]
fn signal_set(&self, signal: Signal)
[src]
fn signal_clear(&self, signal: Signal)
[src]
fn signal_change(&self, clear: Signal, set: Signal)
[src]
fn add_signal_callback(&self, callback: SignalHandler)
[src]
fn allowed_signals(&self) -> Signal
[src]
fn peer(&self) -> ZxResult<Arc<dyn KernelObject>>
[src]
fn related_koid(&self) -> KoID
[src]
fn get_child(&self, _id: KoID) -> ZxResult<Arc<dyn KernelObject>>
[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Downcast for T where
T: Any,
[src]
T: Any,
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
[src]
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
[src]
pub fn as_any(&self) -> &(dyn Any + 'static)
[src]
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
[src]
impl<T> DowncastSync for T where
T: Send + Sync + Any,
[src]
T: Send + Sync + Any,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,