Trait zx::Peered

source ·
pub trait Peered: HandleBased {
    // Provided methods
    fn signal_peer(
        &self,
        clear_mask: Signals,
        set_mask: Signals,
    ) -> Result<(), Status> { ... }
    fn is_closed(&self) -> Result<bool, Status> { ... }
}
Expand description

A trait implemented by all handles for objects which have a peer.

Provided Methods§

source

fn signal_peer( &self, clear_mask: Signals, set_mask: Signals, ) -> Result<(), Status>

Set and clear userspace-accessible signal bits on the object’s peer. Wraps the zx_object_signal_peer syscall.

source

fn is_closed(&self) -> Result<bool, Status>

Returns true if the handle has received the PEER_CLOSED signal.

§Errors

See https://fuchsia.dev/reference/syscalls/object_wait_one?hl=en#errors for a full list of errors. Note that Status::TIMED_OUT errors are converted to Ok(false) and all other errors are propagated.

Object Safety§

This trait is not object safe.

Implementors§