zx

Trait 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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§