Struct PersistentStorageData
pub struct PersistentStorageData {
pub ssid: Vec<u8>,
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: Vec<u8>
§security_type: SecurityType
§credential: Credential
§has_ever_connected: bool
Implementations§
§impl PersistentStorageData
impl PersistentStorageData
pub 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§
§impl Clone for PersistentStorageData
impl Clone for PersistentStorageData
§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 more§impl Debug for PersistentStorageData
impl Debug for PersistentStorageData
§impl<'de> Deserialize<'de> for PersistentStorageData
impl<'de> Deserialize<'de> for PersistentStorageData
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PersistentStorageData, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PersistentStorageData, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl PartialEq for PersistentStorageData
impl PartialEq for PersistentStorageData
§impl Serialize for PersistentStorageData
impl Serialize for PersistentStorageData
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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
)