pub struct Network {
pub client: Arc<NMClient>,
pub device_path: String,
pub ap_path: String,
pub name: String,
pub network_type: SecurityType,
pub is_connected: bool,
pub known_network: Option<KnownNetwork>,
pub signal_strength: u8,
}Fields§
§client: Arc<NMClient>§device_path: String§ap_path: String§name: String§network_type: SecurityType§is_connected: bool§known_network: Option<KnownNetwork>§signal_strength: u8Implementations§
Source§impl Network
impl Network
pub fn from_access_point( client: Arc<NMClient>, device_path: String, ap_info: AccessPointInfo, known_network: Option<KnownNetwork>, is_connected: bool, ) -> Self
pub async fn connect( &self, sender: UnboundedSender<Event>, password: Option<&str>, ) -> Result<()>
pub fn requires_password(&self) -> bool
pub fn is_enterprise(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Network
impl !RefUnwindSafe for Network
impl Send for Network
impl Sync for Network
impl Unpin for Network
impl !UnwindSafe for Network
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more