Struct zircon_object::signal::Port[][src]

pub struct Port { /* fields omitted */ }

Signaling and mailbox primitive

SYNOPSIS

Ports allow threads to wait for packets to be delivered from various events. These events include explicit queueing on the port, asynchronous waits on other handles bound to the port, and asynchronous message delivery from IPC transports.

Implementations

impl Port[src]

pub fn new(options: u32) -> ZxResult<Arc<Self>>[src]

Create a new Port.

pub fn push(&self, packet: impl Into<PortPacket>)[src]

Push a packet into the port.

pub fn push_user(&self, packet: impl Into<PortPacket>) -> ZxResult<()>[src]

Push a User type packet into the port.

pub async fn wait(self: &Arc<Self>) -> PortPacket[src]

Asynchronous wait until at least one packet is available, then take out the earliest (in FIFO order) available packet.

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

Check whether the port can be bound to an interrupt.

Trait Implementations

impl Debug for Port[src]

impl KernelObject for Port[src]

Auto Trait Implementations

impl !RefUnwindSafe for Port

impl Send for Port

impl Sync for Port

impl Unpin for Port

impl !UnwindSafe for Port

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.