pub struct PersistentStorageData {
pub ssid: StashedSsid,
pub security_type: SecurityType,
pub credential: Credential,
pub has_ever_connected: bool,
}
Expand description
The data that will be stored between reboots of a device. Used to convert the data between JSON and network config.
Fields§
§ssid: StashedSsid
§security_type: SecurityType
§credential: Credential
§has_ever_connected: bool
Implementations§
Source§impl PersistentStorageData
impl PersistentStorageData
Sourcepub fn new_from_legacy_data(
id: NetworkIdentifier,
data: PersistentData,
) -> PersistentStorageData
pub fn new_from_legacy_data( id: NetworkIdentifier, data: PersistentData, ) -> PersistentStorageData
Used when migrating persisted networks from deprecated stash to the new local storage format.
Trait Implementations§
Source§impl Clone for PersistentStorageData
impl Clone for PersistentStorageData
Source§fn clone(&self) -> PersistentStorageData
fn clone(&self) -> PersistentStorageData
Returns a copy of the value. Read more
1.0.0 · 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 PersistentStorageData
impl Debug for PersistentStorageData
Source§impl<'de> Deserialize<'de> for PersistentStorageData
impl<'de> Deserialize<'de> for PersistentStorageData
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PersistentStorageData
impl PartialEq for PersistentStorageData
Source§impl Serialize for PersistentStorageData
impl Serialize for PersistentStorageData
impl StructuralPartialEq for PersistentStorageData
Auto Trait Implementations§
impl Freeze for PersistentStorageData
impl RefUnwindSafe for PersistentStorageData
impl Send for PersistentStorageData
impl Sync for PersistentStorageData
impl Unpin for PersistentStorageData
impl UnwindSafe for PersistentStorageData
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)