Struct yew::services::storage::StorageService
source · pub struct StorageService { /* private fields */ }
Expand description
A storage service attached to a context.
Implementations
sourceimpl StorageService
impl StorageService
sourcepub fn new(area: Area) -> Self
pub fn new(area: Area) -> Self
Creates a new storage service instance with specified storate area.
sourcepub fn store<T>(&mut self, key: &str, value: T)where
T: Into<Text>,
pub fn store<T>(&mut self, key: &str, value: T)where
T: Into<Text>,
Stores value to the storage.
Auto Trait Implementations
impl RefUnwindSafe for StorageService
impl Send for StorageService
impl Sync for StorageService
impl Unpin for StorageService
impl UnwindSafe for StorageService
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more