Struct yew_state::handler::StorageHandler[][src]

pub struct StorageHandler<T> { /* fields omitted */ }

Handler for shared state with persistent storage.

If persistent storage is disabled it just behaves like a SharedHandler.

Implementations

impl<T> StorageHandler<T> where
    T: Storable + Default
[src]

pub fn new() -> Self[src]

pub fn load_state(&mut self)[src]

pub fn save_state(&mut self)[src]

Trait Implementations

impl<T> Clone for StorageHandler<T> where
    T: Default + Clone + Storable
[src]

impl<T: Default> Default for StorageHandler<T>[src]

impl<T> StateHandler for StorageHandler<T> where
    T: Default + Clone + Storable
[src]

type Model = T

type Message = ()

type Input = ()

type Output = ()

Auto Trait Implementations

impl<T> !RefUnwindSafe for StorageHandler<T>

impl<T> !Send for StorageHandler<T>

impl<T> !Sync for StorageHandler<T>

impl<T> Unpin for StorageHandler<T>

impl<T> UnwindSafe for StorageHandler<T> where
    T: RefUnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CloneAny for T where
    T: Any + Clone

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.