Trait AsHandleRef

Source
pub trait AsHandleRef {
    // Required methods
    fn as_handle_ref(&self) -> HandleRef<'_>;
    fn object_type() -> ObjectType;

    // Provided methods
    fn signal_handle(
        &self,
        set: Signals,
        clear: Signals,
    ) -> impl Future<Output = Result<(), Error>> { ... }
    fn domain(&self) -> Arc<Client> { ... }
}
Expand description

Trait for turning handle-based types into HandleRef, and for handle operations that can be performed on HandleRef.

Required Methods§

Provided Methods§

Source

fn signal_handle( &self, set: Signals, clear: Signals, ) -> impl Future<Output = Result<(), Error>>

Source

fn domain(&self) -> Arc<Client>

Get the client supporting this handle. See fidl::Proxy::domain.

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§