pub struct NetworkSet { /* private fields */ }Expand description
Re-exports the corresponding SystemConfiguration wrappers.
Wraps SCNetworkSetRef.
Implementations§
Source§impl NetworkSet
impl NetworkSet
Sourcepub fn copy_all(preferences: &Preferences) -> Vec<Self>
pub fn copy_all(preferences: &Preferences) -> Vec<Self>
Wraps SCNetworkSetCopyAll.
Sourcepub fn create(preferences: &Preferences) -> Result<Self>
pub fn create(preferences: &Preferences) -> Result<Self>
Wraps SCNetworkSetCreate.
Sourcepub fn copy(preferences: &Preferences, set_id: &str) -> Result<Option<Self>>
pub fn copy(preferences: &Preferences, set_id: &str) -> Result<Option<Self>>
Wraps SCNetworkSetCopy.
Sourcepub fn copy_current(preferences: &Preferences) -> Option<Self>
pub fn copy_current(preferences: &Preferences) -> Option<Self>
Wraps SCNetworkSetCopyCurrent.
Sourcepub fn copy_services(&self) -> Vec<NetworkService>
pub fn copy_services(&self) -> Vec<NetworkService>
Wraps SCNetworkSetCopyServices.
Sourcepub fn service_order(&self) -> Vec<String>
pub fn service_order(&self) -> Vec<String>
Wraps SCNetworkSetCopyServiceOrder.
Sourcepub fn contains_interface(&self, interface: &NetworkInterface) -> bool
pub fn contains_interface(&self, interface: &NetworkInterface) -> bool
Wraps SCNetworkSetContainsInterface.
Sourcepub fn add_service(&self, service: &NetworkService) -> Result<()>
pub fn add_service(&self, service: &NetworkService) -> Result<()>
Wraps SCNetworkSetAddService.
Sourcepub fn remove_service(&self, service: &NetworkService) -> Result<()>
pub fn remove_service(&self, service: &NetworkService) -> Result<()>
Wraps SCNetworkSetRemoveService.
Sourcepub fn set_current(&self) -> Result<()>
pub fn set_current(&self) -> Result<()>
Wraps SCNetworkSetSetCurrent.
Trait Implementations§
Source§impl Clone for NetworkSet
impl Clone for NetworkSet
Source§fn clone(&self) -> NetworkSet
fn clone(&self) -> NetworkSet
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 NetworkSet
impl RefUnwindSafe for NetworkSet
impl !Send for NetworkSet
impl !Sync for NetworkSet
impl Unpin for NetworkSet
impl UnsafeUnpin for NetworkSet
impl UnwindSafe for NetworkSet
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