Struct mach::message::mach_msg_port_descriptor_t
source · #[repr(C)]pub struct mach_msg_port_descriptor_t {
pub name: mach_port_t,
pub pad1: mach_msg_size_t,
pub pad2: u16,
pub disposition: u8,
pub type_: u8,
}
Fields
name: mach_port_t
pad1: mach_msg_size_t
pad2: u16
disposition: u8
type_: u8
Implementations
sourceimpl mach_msg_port_descriptor_t
impl mach_msg_port_descriptor_t
pub fn new(name: mach_port_t, disposition: mach_msg_type_name_t) -> Self
Trait Implementations
sourceimpl Clone for mach_msg_port_descriptor_t
impl Clone for mach_msg_port_descriptor_t
sourcefn clone(&self) -> mach_msg_port_descriptor_t
fn clone(&self) -> mach_msg_port_descriptor_t
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for mach_msg_port_descriptor_t
impl Debug for mach_msg_port_descriptor_t
sourceimpl Default for mach_msg_port_descriptor_t
impl Default for mach_msg_port_descriptor_t
sourcefn default() -> mach_msg_port_descriptor_t
fn default() -> mach_msg_port_descriptor_t
Returns the “default value” for a type. Read more
sourceimpl Hash for mach_msg_port_descriptor_t
impl Hash for mach_msg_port_descriptor_t
sourceimpl Ord for mach_msg_port_descriptor_t
impl Ord for mach_msg_port_descriptor_t
sourcefn cmp(&self, other: &mach_msg_port_descriptor_t) -> Ordering
fn cmp(&self, other: &mach_msg_port_descriptor_t) -> Ordering
1.21.0 · sourcefn 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
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<mach_msg_port_descriptor_t> for mach_msg_port_descriptor_t
impl PartialEq<mach_msg_port_descriptor_t> for mach_msg_port_descriptor_t
sourcefn eq(&self, other: &mach_msg_port_descriptor_t) -> bool
fn eq(&self, other: &mach_msg_port_descriptor_t) -> bool
sourceimpl PartialOrd<mach_msg_port_descriptor_t> for mach_msg_port_descriptor_t
impl PartialOrd<mach_msg_port_descriptor_t> for mach_msg_port_descriptor_t
sourcefn partial_cmp(&self, other: &mach_msg_port_descriptor_t) -> Option<Ordering>
fn partial_cmp(&self, other: &mach_msg_port_descriptor_t) -> Option<Ordering>
1.0.0 · sourcefn 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 Copy for mach_msg_port_descriptor_t
impl Eq for mach_msg_port_descriptor_t
impl StructuralEq for mach_msg_port_descriptor_t
impl StructuralPartialEq for mach_msg_port_descriptor_t
Auto Trait Implementations
impl RefUnwindSafe for mach_msg_port_descriptor_t
impl Send for mach_msg_port_descriptor_t
impl Sync for mach_msg_port_descriptor_t
impl Unpin for mach_msg_port_descriptor_t
impl UnwindSafe for mach_msg_port_descriptor_t
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more