pub struct CaptiveNetwork;Expand description
Re-exports the corresponding SystemConfiguration wrappers. Wraps the CaptiveNetwork support APIs in SystemConfiguration.
Implementations§
Source§impl CaptiveNetwork
impl CaptiveNetwork
Sourcepub fn supported_interfaces() -> Vec<String>
pub fn supported_interfaces() -> Vec<String>
Wraps SCCaptiveNetworkCopySupportedInterfaces.
Sourcepub fn set_supported_ssids<S: AsRef<str>>(values: &[S]) -> Result<()>
pub fn set_supported_ssids<S: AsRef<str>>(values: &[S]) -> Result<()>
Wraps SCCaptiveNetworkSetSupportedSSIDs.
Sourcepub fn mark_portal_online(interface_name: &str) -> Result<()>
pub fn mark_portal_online(interface_name: &str) -> Result<()>
Wraps SCCaptiveNetworkMarkPortalOnline.
Sourcepub fn mark_portal_offline(interface_name: &str) -> Result<()>
pub fn mark_portal_offline(interface_name: &str) -> Result<()>
Wraps SCCaptiveNetworkMarkPortalOffline.
Trait Implementations§
Source§impl Clone for CaptiveNetwork
impl Clone for CaptiveNetwork
Source§fn clone(&self) -> CaptiveNetwork
fn clone(&self) -> CaptiveNetwork
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 moreSource§impl Debug for CaptiveNetwork
impl Debug for CaptiveNetwork
Source§impl Default for CaptiveNetwork
impl Default for CaptiveNetwork
Source§fn default() -> CaptiveNetwork
fn default() -> CaptiveNetwork
Returns the “default value” for a type. Read more
impl Copy for CaptiveNetwork
Auto Trait Implementations§
impl Freeze for CaptiveNetwork
impl RefUnwindSafe for CaptiveNetwork
impl Send for CaptiveNetwork
impl Sync for CaptiveNetwork
impl Unpin for CaptiveNetwork
impl UnsafeUnpin for CaptiveNetwork
impl UnwindSafe for CaptiveNetwork
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