pub struct Storage { /* private fields */ }Implementations§
source§impl Storage
impl Storage
pub fn new() -> Self
pub fn contains_state(&self, key: &(IdPath, usize)) -> bool
pub fn insert_state(&self, key: (IdPath, usize), value: impl Any)
pub fn state<T>(&self, key: &(IdPath, usize)) -> Twhere T: Clone + 'static,
pub fn insert_event_handler( &self, key: IdPath, handler: impl Fn(Event) + 'static )
pub fn fire_event(&self, key: &IdPath, event: Event)
pub fn set_update_callback(&self, update_callback: impl Fn() + 'static)
Auto Trait Implementations§
impl !RefUnwindSafe for Storage
impl !Send for Storage
impl !Sync for Storage
impl Unpin for Storage
impl !UnwindSafe for Storage
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