Struct fuchsia_zircon::Port
[−]
[src]
pub struct Port(_);
An object representing a Zircon port.
As essentially a subtype of Handle
, it can be freely interconverted.
Methods
impl Port
[src]
fn create() -> Result<Port, Status>
[src]
Create an IO port, allowing IO packets to be read and enqueued.
Wraps the zx_port_create syscall.
fn queue(&self, packet: &Packet) -> Result<(), Status>
[src]
Attempt to queue a user packet to the IO port.
Wraps the zx_port_queue syscall.
fn wait(&self, deadline: Time) -> Result<Packet, Status>
[src]
Wait for a packet to arrive on a (V2) port.
Wraps the zx_port_wait syscall.
fn cancel<H>(&self, source: &H, key: u64) -> Result<(), Status> where
H: HandleBased,
[src]
H: HandleBased,
Cancel pending wait_async calls for an object with the given key.
Wraps the zx_port_cancel syscall.
Trait Implementations
impl Debug for Port
[src]
impl Eq for Port
[src]
impl PartialEq for Port
[src]
fn eq(&self, __arg_0: &Port) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Port) -> bool
[src]
This method tests for !=
.
impl AsHandleRef for Port
[src]
fn as_handle_ref(&self) -> HandleRef
[src]
Get a reference to the handle. One important use of such a reference is for object_wait_many
. Read more
fn raw_handle(&self) -> zx_handle_t
[src]
Interpret the reference as a raw handle (an integer type). Two distinct handles will have different raw values (so it can perhaps be used as a key in a data structure). Read more
fn signal_handle(
&self,
clear_mask: Signals,
set_mask: Signals
) -> Result<(), Status>
[src]
&self,
clear_mask: Signals,
set_mask: Signals
) -> Result<(), Status>
Set and clear userspace-accessible signal bits on an object. Wraps the zx_object_signal syscall. Read more
fn wait_handle(
&self,
signals: Signals,
deadline: Time
) -> Result<Signals, Status>
[src]
&self,
signals: Signals,
deadline: Time
) -> Result<Signals, Status>
Waits on a handle. Wraps the zx_object_wait_one syscall. Read more
fn wait_async_handle(
&self,
port: &Port,
key: u64,
signals: Signals,
options: WaitAsyncOpts
) -> Result<(), Status>
[src]
&self,
port: &Port,
key: u64,
signals: Signals,
options: WaitAsyncOpts
) -> Result<(), Status>
Causes packet delivery on the given port when the object changes state and matches signals. zx_object_wait_async syscall. Read more
impl From<Handle> for Port
[src]
impl HandleBased for Port
[src]
fn duplicate_handle(&self, rights: Rights) -> Result<Self, Status>
[src]
Duplicate a handle, possibly reducing the rights available. Wraps the zx_handle_duplicate syscall. Read more
fn replace_handle(self, rights: Rights) -> Result<Self, Status>
[src]
Create a replacement for a handle, possibly reducing the rights available. This invalidates the original handle. Wraps the zx_handle_replace syscall. Read more
fn into_handle(self) -> Handle
[src]
Converts the value into its inner handle. Read more
fn into_raw(self) -> zx_handle_t
[src]
Converts the handle into it's raw representation. Read more
fn from_handle(handle: Handle) -> Self
[src]
Creates an instance of this type from a handle. Read more
fn into_handle_based<H: HandleBased>(self) -> H
[src]
Creates an instance of another handle-based type from this value's inner handle.
fn from_handle_based<H: HandleBased>(h: H) -> Self
[src]
Creates an instance of this type from the inner handle of another handle-based type. Read more