pub struct RonSaveRepository { /* private fields */ }Expand description
RON-based save repository
Implementations§
Trait Implementations§
Source§impl SaveRepository for RonSaveRepository
impl SaveRepository for RonSaveRepository
Source§fn save<'life0, 'life1, 'async_trait>(
&'life0 self,
data: &'life1 SaveData,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn save<'life0, 'life1, 'async_trait>(
&'life0 self,
data: &'life1 SaveData,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Save game data
Source§fn load<'life0, 'life1, 'async_trait>(
&'life0 self,
slot: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<SaveData>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn load<'life0, 'life1, 'async_trait>(
&'life0 self,
slot: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<SaveData>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Load game data
Source§fn list_saves<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<SaveMetadata>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_saves<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<SaveMetadata>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
List all available saves
Source§fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
slot: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
slot: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Delete a save slot
Source§fn exists<'life0, 'life1, 'async_trait>(
&'life0 self,
slot: &'life1 str,
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn exists<'life0, 'life1, 'async_trait>(
&'life0 self,
slot: &'life1 str,
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Check if a save exists
Source§fn get_metadata<'life0, 'life1, 'async_trait>(
&'life0 self,
slot: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<SaveMetadata>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_metadata<'life0, 'life1, 'async_trait>(
&'life0 self,
slot: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<SaveMetadata>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get save metadata without loading full data
Auto Trait Implementations§
impl Freeze for RonSaveRepository
impl RefUnwindSafe for RonSaveRepository
impl Send for RonSaveRepository
impl Sync for RonSaveRepository
impl Unpin for RonSaveRepository
impl UnsafeUnpin for RonSaveRepository
impl UnwindSafe for RonSaveRepository
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
impl<T> Component for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more