Struct zx::HandleDisposition
source · #[repr(C)]pub struct HandleDisposition<'a> {
pub object_type: ObjectType,
pub rights: Rights,
pub result: Status,
/* private fields */
}
Expand description
Operation to perform on handles during write. ABI-compatible with zx_handle_disposition_t
.
Fields§
§object_type: ObjectType
§rights: Rights
§result: Status
Implementations§
source§impl<'a> HandleDisposition<'a>
impl<'a> HandleDisposition<'a>
pub fn new( handle_op: HandleOp<'a>, object_type: ObjectType, rights: Rights, status: Status, ) -> Self
pub fn raw_handle(&self) -> zx_handle_t
pub fn is_move(&self) -> bool
pub fn is_duplicate(&self) -> bool
pub fn take_op(&mut self) -> HandleOp<'a>
pub fn into_raw(self) -> zx_handle_disposition_t
Trait Implementations§
source§impl<'a> Debug for HandleDisposition<'a>
impl<'a> Debug for HandleDisposition<'a>
source§impl<'a> Drop for HandleDisposition<'a>
impl<'a> Drop for HandleDisposition<'a>
source§impl<'a> Hash for HandleDisposition<'a>
impl<'a> Hash for HandleDisposition<'a>
source§impl<'a> Ord for HandleDisposition<'a>
impl<'a> Ord for HandleDisposition<'a>
source§fn cmp(&self, other: &HandleDisposition<'a>) -> Ordering
fn cmp(&self, other: &HandleDisposition<'a>) -> 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<'a> PartialEq for HandleDisposition<'a>
impl<'a> PartialEq for HandleDisposition<'a>
source§fn eq(&self, other: &HandleDisposition<'a>) -> bool
fn eq(&self, other: &HandleDisposition<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> PartialOrd for HandleDisposition<'a>
impl<'a> PartialOrd for HandleDisposition<'a>
source§fn partial_cmp(&self, other: &HandleDisposition<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &HandleDisposition<'a>) -> 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<'a> Eq for HandleDisposition<'a>
impl<'a> StructuralPartialEq for HandleDisposition<'a>
Auto Trait Implementations§
impl<'a> Freeze for HandleDisposition<'a>
impl<'a> RefUnwindSafe for HandleDisposition<'a>
impl<'a> Send for HandleDisposition<'a>
impl<'a> Sync for HandleDisposition<'a>
impl<'a> Unpin for HandleDisposition<'a>
impl<'a> UnwindSafe for HandleDisposition<'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