pub struct WifiTable {
pub ssid: String,
pub psk: Option<String>,
pub channel: Option<u8>,
pub bssid: Option<String>,
pub epoch: Option<u64>,
pub extra_aps: Vec<AccessPoint>,
pub nearby: Vec<String>,
pub services: Vec<ServiceSpec>,
pub services_default: bool,
pub resolve_unknown: bool,
pub names: BTreeMap<String, String>,
}Fields§
§ssid: String§psk: Option<String>§channel: Option<u8>§bssid: Option<String>§epoch: Option<u64>The network’s clock, seconds since 1970, for its SNTP answers.
extra_aps: Vec<AccessPoint>Further joinable access points beside the first one.
nearby: Vec<String>Networks a scan reports but cannot join (ssid=NAME[,rssi=-70]).
services: Vec<ServiceSpec>What the router answers. Empty means the defaults (HTTP on 80, a TCP
echo on 7) unless services = false.
services_default: boolTurn the default services off, leaving a router that refuses every
connection. Ignored when [[sim.wifi.service]] names its own.
resolve_unknown: boolResolve every name to the router. Off means only names resolve.
names: BTreeMap<String, String>Names the router resolves, as name = "10.0.2.3".
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WifiTable
impl<'de> Deserialize<'de> for WifiTable
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<WifiTable, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<WifiTable, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for WifiTable
impl Freeze for WifiTablewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<AccessPoint>: Freeze,
PhantomData<String>: Freeze,
PhantomData<ServiceSpec>: Freeze,
*const LeafNode<String, String> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, String)>>: Freeze,
impl Move for WifiTable
impl RefUnwindSafe for WifiTable
impl Send for WifiTable
impl Sync for WifiTable
impl Unpin for WifiTable
impl UnsafeUnpin for WifiTablewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<AccessPoint>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<ServiceSpec>: UnsafeUnpin,
*const LeafNode<String, String> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, String)>>: UnsafeUnpin,
impl UnwindSafe for WifiTable
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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