ariel_os::storage

Function get

pub async fn get<V>(key: &str) -> Result<Option<V>, Error<FlashError>>
where V: Serialize + for<'d> Deserialize<'d> + Into<PostcardValue<V>>,
Available on crate feature storage only.
Expand description

Gets the last stored value from the flash that is associated with the given key.

Note: Always get() the same value type that was insert()!

If no value with the key is found, None is returned.