[−][src]Struct yew::services::storage::StorageService
A storage service attached to a context.
Methods
impl StorageService
[src]
pub fn new(area: Area) -> Self
[src]
Creates a new storage service instance with specified storage area.
pub fn store<T>(&mut self, key: &str, value: T) where
T: Into<Text>,
[src]
T: Into<Text>,
Stores value to the storage.
pub fn restore<T>(&self, key: &str) -> T where
T: From<Text>,
[src]
T: From<Text>,
Restores value from the storage.
pub fn remove(&mut self, key: &str)
[src]
Removes value from the storage.
Auto Trait Implementations
impl Sync for StorageService
impl Send for StorageService
impl Unpin for StorageService
impl UnwindSafe for StorageService
impl RefUnwindSafe for StorageService
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
[src]
T: Any,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,