Struct feattle::persist::NoPersistence [−][src]
pub struct NoPersistence;
Expand description
A mock implementation that does not store the information anywhere.
Trait Implementations
pub fn save_current<'life0, 'life1, 'async_trait>(
&'life0 self,
_value: &'life1 CurrentValues
) -> Pin<Box<dyn Future<Output = Result<(), <NoPersistence as Persist>::Error>> + Send + 'async_trait, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
NoPersistence: 'async_trait,
pub fn save_current<'life0, 'life1, 'async_trait>(
&'life0 self,
_value: &'life1 CurrentValues
) -> Pin<Box<dyn Future<Output = Result<(), <NoPersistence as Persist>::Error>> + Send + 'async_trait, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
NoPersistence: 'async_trait,
Save current state of all feattles.
pub fn load_current<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Option<CurrentValues>, <NoPersistence as Persist>::Error>> + Send + 'async_trait, Global>> where
'life0: 'async_trait,
NoPersistence: 'async_trait,
pub fn load_current<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Option<CurrentValues>, <NoPersistence as Persist>::Error>> + Send + 'async_trait, Global>> where
'life0: 'async_trait,
NoPersistence: 'async_trait,
Load the current state of all feattles. With no previous state existed, Ok(None)
should be
returned. Read more
pub fn save_history<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_key: &'life1 str,
_value: &'life2 ValueHistory
) -> Pin<Box<dyn Future<Output = Result<(), <NoPersistence as Persist>::Error>> + Send + 'async_trait, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
NoPersistence: 'async_trait,
pub fn save_history<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_key: &'life1 str,
_value: &'life2 ValueHistory
) -> Pin<Box<dyn Future<Output = Result<(), <NoPersistence as Persist>::Error>> + Send + 'async_trait, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
NoPersistence: 'async_trait,
Save the full history of a single feattle.
pub fn load_history<'life0, 'life1, 'async_trait>(
&'life0 self,
_key: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Option<ValueHistory>, <NoPersistence as Persist>::Error>> + Send + 'async_trait, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
NoPersistence: 'async_trait,
pub fn load_history<'life0, 'life1, 'async_trait>(
&'life0 self,
_key: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Option<ValueHistory>, <NoPersistence as Persist>::Error>> + Send + 'async_trait, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
NoPersistence: 'async_trait,
Load the full history of a single feattle. With the feattle has no history, Ok(None)
should be returned. Read more
Auto Trait Implementations
impl RefUnwindSafe for NoPersistence
impl Send for NoPersistence
impl Sync for NoPersistence
impl Unpin for NoPersistence
impl UnwindSafe for NoPersistence
Blanket Implementations
Mutably borrows from an owned value. Read more