pub trait RWHandleSpec:
Send
+ Sync
+ 'static {
const READABLE_SIGNALS: Signals;
const WRITABLE_SIGNALS: Signals;
}
Expand description
A trait specifying the behavior of RWHandle
.
The default behavior, listening for zx::Signals::OBJECT_READABLE
and
zx::Signals::OBJECT_WRITABLE
is provided by DefaultRWHandleSpec
.
Required Associated Constants§
Sourceconst READABLE_SIGNALS: Signals
const READABLE_SIGNALS: Signals
Signals asserted when the handle is readable.
RWHandle
installs wait for these signals and if any of them are
asserted, the handle is considered readable.
Sourceconst WRITABLE_SIGNALS: Signals
const WRITABLE_SIGNALS: Signals
Signals asserted when the handle is writable.
RWHandle
installs wait for these signals and if any of them are
asserted, the handle is considered writable.
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.