pub struct BondInterface { /* private fields */ }Expand description
Re-exports the corresponding SystemConfiguration wrappers.
Wraps SCBondInterfaceRef.
Implementations§
Source§impl BondInterface
impl BondInterface
Sourcepub fn copy_all(preferences: &Preferences) -> Vec<Self>
pub fn copy_all(preferences: &Preferences) -> Vec<Self>
Wraps SCBondInterfaceCopyAll.
Sourcepub fn copy_available_member_interfaces(
preferences: &Preferences,
) -> Vec<NetworkInterface>
pub fn copy_available_member_interfaces( preferences: &Preferences, ) -> Vec<NetworkInterface>
Wraps SCBondInterfaceCopyAvailableMemberInterfaces.
Sourcepub fn create(preferences: &Preferences) -> Result<Self>
pub fn create(preferences: &Preferences) -> Result<Self>
Wraps SCBondInterfaceCreate.
Sourcepub fn member_interfaces(&self) -> Vec<NetworkInterface>
pub fn member_interfaces(&self) -> Vec<NetworkInterface>
Wraps SCBondInterfaceCopyMemberInterfaces.
Sourcepub fn options(&self) -> Option<PropertyList>
pub fn options(&self) -> Option<PropertyList>
Wraps SCBondInterfaceCopyOptions.
Sourcepub fn set_localized_display_name(&self, name: &str) -> Result<()>
pub fn set_localized_display_name(&self, name: &str) -> Result<()>
Wraps SCBondInterfaceSetLocalizedDisplayName.
Sourcepub fn set_member_interfaces(&self, members: &[NetworkInterface]) -> Result<()>
pub fn set_member_interfaces(&self, members: &[NetworkInterface]) -> Result<()>
Wraps SCBondInterfaceSetMemberInterfaces.
Sourcepub fn set_options(&self, options: &PropertyList) -> Result<()>
pub fn set_options(&self, options: &PropertyList) -> Result<()>
Wraps SCBondInterfaceSetOptions.
Sourcepub fn status(&self) -> Option<BondStatus>
pub fn status(&self) -> Option<BondStatus>
Wraps SCBondInterfaceCopyStatus.
Sourcepub fn as_network_interface(&self) -> NetworkInterface
pub fn as_network_interface(&self) -> NetworkInterface
Wraps a helper on SCBondInterfaceRef.
Trait Implementations§
Source§impl Clone for BondInterface
impl Clone for BondInterface
Source§fn clone(&self) -> BondInterface
fn clone(&self) -> BondInterface
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BondInterface
impl RefUnwindSafe for BondInterface
impl !Send for BondInterface
impl !Sync for BondInterface
impl Unpin for BondInterface
impl UnsafeUnpin for BondInterface
impl UnwindSafe for BondInterface
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