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: boolImplementations§
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 duplicate 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<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
Source§impl PartialEq for PersistentStorageData
impl PartialEq for PersistentStorageData
Source§impl Serialize for PersistentStorageData
impl Serialize for PersistentStorageData
Source§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§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]§impl<T> IntoAny for T
impl<T> IntoAny for T
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