Struct fuchsia_zircon::HandleInfo
source · #[repr(C)]pub struct HandleInfo {
pub handle: Handle,
pub object_type: ObjectType,
pub rights: Rights,
}
Expand description
Information on handles that were read. Based on zx_handle_info_t.
Fields§
§handle: Handle
§object_type: ObjectType
§rights: Rights
Implementations§
source§impl HandleInfo
impl HandleInfo
sourcepub const unsafe fn from_raw(raw: zx_handle_info_t) -> HandleInfo
pub const unsafe fn from_raw(raw: zx_handle_info_t) -> HandleInfo
§Safety
See Handle::from_raw
for requirements about the validity and closing
of raw.handle
.
raw.rights
must be a bitwise combination of one or more Rights
with no additional bits set.
Note that while raw.ty
should correspond to the type of the handle,
that this is not required for safety.
Trait Implementations§
source§impl Debug for HandleInfo
impl Debug for HandleInfo
source§impl Hash for HandleInfo
impl Hash for HandleInfo
source§impl Ord for HandleInfo
impl Ord for HandleInfo
source§fn cmp(&self, other: &HandleInfo) -> Ordering
fn cmp(&self, other: &HandleInfo) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for HandleInfo
impl PartialEq for HandleInfo
source§fn eq(&self, other: &HandleInfo) -> bool
fn eq(&self, other: &HandleInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for HandleInfo
impl PartialOrd for HandleInfo
source§fn partial_cmp(&self, other: &HandleInfo) -> Option<Ordering>
fn partial_cmp(&self, other: &HandleInfo) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for HandleInfo
impl StructuralPartialEq for HandleInfo
Auto Trait Implementations§
impl Freeze for HandleInfo
impl RefUnwindSafe for HandleInfo
impl Send for HandleInfo
impl Sync for HandleInfo
impl Unpin for HandleInfo
impl UnwindSafe for HandleInfo
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