Struct WaitItem
pub struct WaitItem<'a> { /* private fields */ }Expand description
A “wait item” containing a handle reference and information about what signals
to wait on, and, on return from object_wait_many, which are pending.
Returned from wait_item() methods on handle newtypes.
ABI-compatible with zx_wait_item_t.
Implementations§
§impl<'a> WaitItem<'a>
impl<'a> WaitItem<'a>
pub fn handle(&self) -> Unowned<'a, NullableHandle>
pub fn handle(&self) -> Unowned<'a, NullableHandle>
Returns a reference to the contained handle, if any.
pub fn waiting_for(&self) -> Signals
pub fn waiting_for(&self) -> Signals
Returns the signals that this WaitItem is asing the kernel to wait for.
Trait Implementations§
§impl<'a> AsHandleRef for WaitItem<'a>
impl<'a> AsHandleRef for WaitItem<'a>
§fn as_handle_ref(&self) -> Unowned<'a, NullableHandle>
fn as_handle_ref(&self) -> Unowned<'a, NullableHandle>
Get a reference to the handle. One important use of such a reference is
for
object_wait_many.Auto Trait Implementations§
impl<'a> Freeze for WaitItem<'a>
impl<'a> RefUnwindSafe for WaitItem<'a>
impl<'a> Send for WaitItem<'a>
impl<'a> Sync for WaitItem<'a>
impl<'a> Unpin for WaitItem<'a>
impl<'a> UnsafeUnpin for WaitItem<'a>
impl<'a> UnwindSafe for WaitItem<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
Source§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to Self