pub struct PersistentStorage<Ev> { /* private fields */ }Implementations§
Source§impl<Ev> PersistentStorage<Ev>where
Ev: 'static,
Public API of the capability, called by App::update.
impl<Ev> PersistentStorage<Ev>where
Ev: 'static,
Public API of the capability, called by App::update.
pub fn new(context: CapabilityContext<PersistentStorageOperation, Ev>) -> Self
Trait Implementations§
Source§impl<Ev> Capability<Ev> for PersistentStorage<Ev>
impl<Ev> Capability<Ev> for PersistentStorage<Ev>
type Operation = PersistentStorageOperation
type MappedSelf<MappedEv> = PersistentStorage<MappedEv>
fn map_event<F, NewEv>(&self, f: F) -> Self::MappedSelf<NewEv>
fn register_types(generator: &mut TypeGen) -> Result<(), TypeGenError>
Auto Trait Implementations§
impl<Ev> Freeze for PersistentStorage<Ev>
impl<Ev> !RefUnwindSafe for PersistentStorage<Ev>
impl<Ev> Send for PersistentStorage<Ev>
impl<Ev> Sync for PersistentStorage<Ev>
impl<Ev> Unpin for PersistentStorage<Ev>
impl<Ev> !UnwindSafe for PersistentStorage<Ev>
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