pub trait DynStateStoreWriteEpochControl: StaticSendSync {
// Required methods
fn flush<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = StorageResult<usize>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn try_flush<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = StorageResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn init<'life0, 'async_trait>(
&'life0 mut self,
epoch: InitOptions,
) -> Pin<Box<dyn Future<Output = StorageResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn seal_current_epoch(
&mut self,
next_epoch: u64,
opts: SealCurrentEpochOptions,
);
}
Required Methods§
fn flush<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = StorageResult<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn try_flush<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = StorageResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn init<'life0, 'async_trait>(
&'life0 mut self,
epoch: InitOptions,
) -> Pin<Box<dyn Future<Output = StorageResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn seal_current_epoch(&mut self, next_epoch: u64, opts: SealCurrentEpochOptions)
Trait Implementations§
Source§impl AsMut<dyn DynStateStoreWriteEpochControl> for StateStorePointer<Box<dyn DynLocalStateStore>>
impl AsMut<dyn DynStateStoreWriteEpochControl> for StateStorePointer<Box<dyn DynLocalStateStore>>
Source§fn as_mut(&mut self) -> &mut dyn DynStateStoreWriteEpochControl
fn as_mut(&mut self) -> &mut dyn DynStateStoreWriteEpochControl
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsMut<dyn DynStateStoreWriteEpochControl> for StateStorePointer<Box<dyn DynStateStoreWriteVector>>
impl AsMut<dyn DynStateStoreWriteEpochControl> for StateStorePointer<Box<dyn DynStateStoreWriteVector>>
Source§fn as_mut(&mut self) -> &mut dyn DynStateStoreWriteEpochControl
fn as_mut(&mut self) -> &mut dyn DynStateStoreWriteEpochControl
Converts this type into a mutable reference of the (usually inferred) input type.