pub struct NetworkSet { /* private fields */ }Implementations§
Source§impl NetworkSet
impl NetworkSet
pub fn type_id() -> u64
Sourcepub fn copy_all(preferences: &Preferences) -> Vec<Self>
pub fn copy_all(preferences: &Preferences) -> Vec<Self>
pub fn create(preferences: &Preferences) -> Result<Self>
pub fn copy(preferences: &Preferences, set_id: &str) -> Result<Option<Self>>
Sourcepub fn copy_current(preferences: &Preferences) -> Option<Self>
pub fn copy_current(preferences: &Preferences) -> Option<Self>
Sourcepub fn copy_services(&self) -> Vec<NetworkService>
pub fn copy_services(&self) -> Vec<NetworkService>
pub fn service_order(&self) -> Vec<String>
pub fn contains_interface(&self, interface: &NetworkInterface) -> bool
pub fn add_service(&self, service: &NetworkService) -> Result<()>
pub fn remove(&self) -> Result<()>
pub fn remove_service(&self, service: &NetworkService) -> Result<()>
pub fn set_current(&self) -> Result<()>
pub fn set_name(&self, name: Option<&str>) -> Result<()>
pub fn set_service_order<S: AsRef<str>>(&self, values: &[S]) -> Result<()>
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