#[repr(transparent)]pub struct SysControlAddr(_);
Available on crate feature
socket
only.Expand description
Apple system control socket
References
https://developer.apple.com/documentation/kernel/sockaddr_ctl
Implementations
sourceimpl SysControlAddr
impl SysControlAddr
sourcepub const fn new(id: u32, unit: u32) -> SysControlAddr
Available on crate feature ioctl
only.
pub const fn new(id: u32, unit: u32) -> SysControlAddr
ioctl
only.Construct a new SysControlAddr
from its kernel unique identifier
and unit number.
sourcepub fn from_name(sockfd: RawFd, name: &str, unit: u32) -> Result<SysControlAddr>
Available on crate feature ioctl
only.
pub fn from_name(sockfd: RawFd, name: &str, unit: u32) -> Result<SysControlAddr>
ioctl
only.Construct a new SysControlAddr
from its human readable name and
unit number.
Trait Implementations
sourceimpl AsRef<sockaddr_ctl> for SysControlAddr
Available on crate feature ioctl
only.
impl AsRef<sockaddr_ctl> for SysControlAddr
Available on crate feature
ioctl
only.sourcefn as_ref(&self) -> &sockaddr_ctl
fn as_ref(&self) -> &sockaddr_ctl
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for SysControlAddr
Available on crate feature ioctl
only.
impl Clone for SysControlAddr
Available on crate feature
ioctl
only.sourcefn clone(&self) -> SysControlAddr
fn clone(&self) -> SysControlAddr
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 more
sourceimpl Debug for SysControlAddr
Available on crate feature ioctl
only.
impl Debug for SysControlAddr
Available on crate feature
ioctl
only.sourceimpl Display for SysControlAddr
Available on crate feature ioctl
only.
impl Display for SysControlAddr
Available on crate feature
ioctl
only.sourceimpl Hash for SysControlAddr
Available on crate feature ioctl
only.
impl Hash for SysControlAddr
Available on crate feature
ioctl
only.sourceimpl PartialEq<SysControlAddr> for SysControlAddr
Available on crate feature ioctl
only.
impl PartialEq<SysControlAddr> for SysControlAddr
Available on crate feature
ioctl
only.sourcefn eq(&self, other: &SysControlAddr) -> bool
fn eq(&self, other: &SysControlAddr) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SysControlAddr) -> bool
fn ne(&self, other: &SysControlAddr) -> bool
This method tests for !=
.
sourceimpl SockaddrLike for SysControlAddr
Available on crate feature ioctl
only.
impl SockaddrLike for SysControlAddr
Available on crate feature
ioctl
only.sourceunsafe fn from_raw(addr: *const sockaddr, len: Option<socklen_t>) -> Option<Self> where
Self: Sized,
unsafe fn from_raw(addr: *const sockaddr, len: Option<socklen_t>) -> Option<Self> where
Self: Sized,
Unsafe constructor from a variable length source Read more
sourcefn as_ptr(&self) -> *const sockaddr
fn as_ptr(&self) -> *const sockaddr
Returns a raw pointer to the inner structure. Useful for FFI.
sourcefn family(&self) -> Option<AddressFamily>
fn family(&self) -> Option<AddressFamily>
Return the address family of this socket Read more
impl Copy for SysControlAddr
Available on crate feature
ioctl
only.impl Eq for SysControlAddr
Available on crate feature
ioctl
only.impl StructuralEq for SysControlAddr
Available on crate feature
ioctl
only.impl StructuralPartialEq for SysControlAddr
Available on crate feature
ioctl
only.Auto Trait Implementations
impl RefUnwindSafe for SysControlAddr
impl Send for SysControlAddr
impl Sync for SysControlAddr
impl Unpin for SysControlAddr
impl UnwindSafe for SysControlAddr
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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