Struct tauri_plugin_store::Store
source · pub struct Store<R: Runtime> { /* private fields */ }
Implementations§
source§impl<R: Runtime> Store<R>
impl<R: Runtime> Store<R>
pub fn insert(&mut self, key: String, value: JsonValue) -> Result<(), Error>
pub fn get(&self, key: impl AsRef<str>) -> Option<&JsonValue>
pub fn has(&self, key: impl AsRef<str>) -> bool
pub fn delete(&mut self, key: impl AsRef<str>) -> Result<bool, Error>
pub fn clear(&mut self) -> Result<(), Error>
pub fn reset(&mut self) -> Result<(), Error>
pub fn keys(&self) -> impl Iterator<Item = &String>
pub fn values(&self) -> impl Iterator<Item = &JsonValue>
pub fn entries(&self) -> impl Iterator<Item = (&String, &JsonValue)>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl<R> Freeze for Store<R>
impl<R> !RefUnwindSafe for Store<R>
impl<R> Send for Store<R>
impl<R> Sync for Store<R>
impl<R> Unpin for Store<R>
impl<R> !UnwindSafe for Store<R>
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