#[repr(C)]pub struct HandleInfo {
pub handle: Handle,
pub object_type: ObjectType,
pub rights: Rights,
/* private fields */
}
Expand description
Information on handles that were read.
ABI-compatible with zx_handle_info_t.
Fields§
§handle: Handle
§object_type: ObjectType
§rights: Rights
Implementations§
Source§impl HandleInfo
impl HandleInfo
Sourcepub const fn new(
handle: Handle,
object_type: ObjectType,
rights: Rights,
) -> Self
pub const fn new( handle: Handle, object_type: ObjectType, rights: Rights, ) -> Self
Make a new 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
.
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§impl PartialOrd for HandleInfo
impl PartialOrd for HandleInfo
impl 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