pub fn wake_on_signals(
        &self,
        handle: &dyn zx::AsHandleRef,
        signals: zx::Signals,
        handler: SignalHandler,
    ) -> Result<(), zx::Status> {
        let callback = WaitCallback::SignalHandler(handler);
        let key = self.register_callback(callback);
        handle.wait_async_handle(&self.port, key, signals, zx::WaitAsyncOpts::empty())
    }
/// Establish an asynchronous wait for the signals on the given handle,
/// optionally running a FnOnce.
Establish an asynchronous wait for the signals on the given handle,
optionally running a FnOnce.
Establish an asynchronous wait for the signals on the given handle optionally running a FnOnce .
pub fn wake_on_signals(
        &self,
        handle: &dyn zx::AsHandleRef,
        signals: zx::Signals,
        handler: SignalHandler,
    ) -> Result<(), zx::Status> {
        let callback = WaitCallback::SignalHandler(handler);
        let key = self.register_callback(callback);
        handle.wait_async_handle(&self.port, key, signals, zx::WaitAsyncOpts::empty())
    }
pub fn wake_on_signals ( & self , handle : & dyn zx :: AsHandleRef , signals : zx :: Signals , handler : SignalHandler , ) -> Result < ( ) , zx :: Status > { let callback = WaitCallback :: SignalHandler ( handler ) ; let key = self . register_callback ( callback ) ; handle . wait_async_handle ( & self . port , key , signals , zx :: WaitAsyncOpts :: empty ( ) ) }
Establish an asynchronous wait for the signals on the given handle,
optionally running a FnOnce.
Establish an asynchronous wait for the signals on the given handle optionally running a FnOnce .
&self
handle
&dyn zx::AsHandleRef
signals
zx::Signals
handler
SignalHandler
&self
handle
&dyn zx::AsHandleRef
signals
zx::Signals
handler
SignalHandler