pub struct SCBondStatus { /* private fields */ }SCNetworkConfiguration only.Expand description
This is the type of a reference to an object that represents the status of an Ethernet Bond interface.
See also Apple’s documentation
Implementations§
Source§impl SCBondStatus
impl SCBondStatus
Sourcepub fn member_interfaces(&self) -> Option<CFRetained<CFArray>>
pub fn member_interfaces(&self) -> Option<CFRetained<CFArray>>
Returns the member interfaces that are represented with the Ethernet Bond interface.
Parameter bondStatus: The Ethernet Bond status.
Returns: The list of interfaces.
Sourcepub fn interface_status(
&self,
interface: Option<&SCNetworkInterface>,
) -> Option<CFRetained<CFDictionary>>
pub fn interface_status( &self, interface: Option<&SCNetworkInterface>, ) -> Option<CFRetained<CFDictionary>>
Returns the status of a specific member interface of an Ethernet Bond or the status of the bond as a whole.
Parameter bondStatus: The Ethernet Bond status.
Parameter interface: The specific member interface; NULL if you want the
status of the Ethernet Bond.
Returns: The interface status.
Note: at present, no information about the status of the Ethernet Bond is returned. As long as one member interface is active then the bond should be operational.
Methods from Deref<Target = CFType>§
Sourcepub fn downcast_ref<T>(&self) -> Option<&T>where
T: ConcreteType,
pub fn downcast_ref<T>(&self) -> Option<&T>where
T: ConcreteType,
Attempt to downcast the type to that of type T.
This is the reference-variant. Use CFRetained::downcast if you
want to convert a retained type. See also ConcreteType for more
details on which types support being converted to.
Sourcepub fn retain_count(&self) -> usize
pub fn retain_count(&self) -> usize
Get the reference count of the object.
This function may be useful for debugging. You normally do not use this function otherwise.
Beware that some things (like CFNumbers, small CFStrings etc.) may
not have a normal retain count for optimization purposes, and can
return usize::MAX in that case.
Trait Implementations§
Source§impl AsRef<AnyObject> for SCBondStatus
impl AsRef<AnyObject> for SCBondStatus
Source§impl AsRef<CFType> for SCBondStatus
impl AsRef<CFType> for SCBondStatus
Source§impl AsRef<SCBondStatus> for SCBondStatus
impl AsRef<SCBondStatus> for SCBondStatus
Source§impl Borrow<AnyObject> for SCBondStatus
impl Borrow<AnyObject> for SCBondStatus
Source§impl Borrow<CFType> for SCBondStatus
impl Borrow<CFType> for SCBondStatus
Source§impl ConcreteType for SCBondStatus
impl ConcreteType for SCBondStatus
Source§impl Debug for SCBondStatus
impl Debug for SCBondStatus
Source§impl Deref for SCBondStatus
impl Deref for SCBondStatus
Source§impl Hash for SCBondStatus
impl Hash for SCBondStatus
Source§impl Message for SCBondStatus
impl Message for SCBondStatus
Source§impl PartialEq for SCBondStatus
impl PartialEq for SCBondStatus
Source§impl RefEncode for SCBondStatus
impl RefEncode for SCBondStatus
Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
Source§impl Type for SCBondStatus
impl Type for SCBondStatus
Source§fn retain(&self) -> CFRetained<Self>where
Self: Sized,
fn retain(&self) -> CFRetained<Self>where
Self: Sized,
Source§fn as_concrete_TypeRef(&self) -> &Self
fn as_concrete_TypeRef(&self) -> &Self
core-foundation crate.Source§unsafe fn wrap_under_get_rule(ptr: *const Self) -> CFRetained<Self>where
Self: Sized,
unsafe fn wrap_under_get_rule(ptr: *const Self) -> CFRetained<Self>where
Self: Sized,
core-foundation crate. Read moreSource§fn as_CFTypeRef(&self) -> &CFType
fn as_CFTypeRef(&self) -> &CFType
core-foundation crate.Source§unsafe fn wrap_under_create_rule(ptr: *const Self) -> CFRetained<Self>where
Self: Sized,
unsafe fn wrap_under_create_rule(ptr: *const Self) -> CFRetained<Self>where
Self: Sized,
core-foundation crate. Read more