[−][src]Struct xaynet_server::storage::store::Store
A generic store.
Implementations
impl<C, M> Store<C, M> where
C: CoordinatorStorage,
M: ModelStorage,
[src]
C: CoordinatorStorage,
M: ModelStorage,
pub fn new(coordinator: C, model: M) -> Self
[src]
Creates a new Store
.
pub async fn is_ready(&mut self) -> StorageResult<()>
[src]
Trait Implementations
impl<C: Clone, M: Clone> Clone for Store<C, M> where
C: CoordinatorStorage,
M: ModelStorage,
[src]
C: CoordinatorStorage,
M: ModelStorage,
impl<C, M> CoordinatorStorage for Store<C, M> where
C: CoordinatorStorage,
M: ModelStorage,
[src]
C: CoordinatorStorage,
M: ModelStorage,
pub fn set_coordinator_state<'life0, 'life1, 'async_trait>(
&'life0 mut self,
state: &'life1 CoordinatorState
) -> Pin<Box<dyn Future<Output = StorageResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
state: &'life1 CoordinatorState
) -> Pin<Box<dyn Future<Output = StorageResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
pub fn coordinator_state<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = StorageResult<Option<CoordinatorState>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self
) -> Pin<Box<dyn Future<Output = StorageResult<Option<CoordinatorState>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
pub fn add_sum_participant<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
pk: &'life1 SumParticipantPublicKey,
ephm_pk: &'life2 SumParticipantEphemeralPublicKey
) -> Pin<Box<dyn Future<Output = StorageResult<SumPartAdd>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
pk: &'life1 SumParticipantPublicKey,
ephm_pk: &'life2 SumParticipantEphemeralPublicKey
) -> Pin<Box<dyn Future<Output = StorageResult<SumPartAdd>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
pub fn sum_dict<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = StorageResult<Option<SumDict>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self
) -> Pin<Box<dyn Future<Output = StorageResult<Option<SumDict>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
pub fn add_local_seed_dict<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
update_pk: &'life1 UpdateParticipantPublicKey,
local_seed_dict: &'life2 LocalSeedDict
) -> Pin<Box<dyn Future<Output = StorageResult<LocalSeedDictAdd>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
update_pk: &'life1 UpdateParticipantPublicKey,
local_seed_dict: &'life2 LocalSeedDict
) -> Pin<Box<dyn Future<Output = StorageResult<LocalSeedDictAdd>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
pub fn seed_dict<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = StorageResult<Option<SeedDict>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self
) -> Pin<Box<dyn Future<Output = StorageResult<Option<SeedDict>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
pub fn incr_mask_score<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
pk: &'life1 SumParticipantPublicKey,
mask: &'life2 MaskObject
) -> Pin<Box<dyn Future<Output = StorageResult<MaskScoreIncr>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
pk: &'life1 SumParticipantPublicKey,
mask: &'life2 MaskObject
) -> Pin<Box<dyn Future<Output = StorageResult<MaskScoreIncr>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
pub fn best_masks<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = StorageResult<Option<Vec<(MaskObject, u64)>>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self
) -> Pin<Box<dyn Future<Output = StorageResult<Option<Vec<(MaskObject, u64)>>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
pub fn number_of_unique_masks<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = StorageResult<u64>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self
) -> Pin<Box<dyn Future<Output = StorageResult<u64>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
pub fn delete_coordinator_data<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = StorageResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self
) -> Pin<Box<dyn Future<Output = StorageResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
pub fn delete_dicts<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = StorageResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self
) -> Pin<Box<dyn Future<Output = StorageResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
pub fn set_latest_global_model_id<'life0, 'life1, 'async_trait>(
&'life0 mut self,
id: &'life1 str
) -> Pin<Box<dyn Future<Output = StorageResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
id: &'life1 str
) -> Pin<Box<dyn Future<Output = StorageResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
pub fn latest_global_model_id<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = StorageResult<Option<String>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self
) -> Pin<Box<dyn Future<Output = StorageResult<Option<String>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
pub fn is_ready<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = StorageResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self
) -> Pin<Box<dyn Future<Output = StorageResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
impl<C, M> ModelStorage for Store<C, M> where
C: CoordinatorStorage,
M: ModelStorage,
[src]
C: CoordinatorStorage,
M: ModelStorage,
pub fn set_global_model<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
round_id: u64,
round_seed: &'life1 RoundSeed,
global_model: &'life2 Model
) -> Pin<Box<dyn Future<Output = StorageResult<String>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
round_id: u64,
round_seed: &'life1 RoundSeed,
global_model: &'life2 Model
) -> Pin<Box<dyn Future<Output = StorageResult<String>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
pub fn global_model<'life0, 'life1, 'async_trait>(
&'life0 mut self,
id: &'life1 str
) -> Pin<Box<dyn Future<Output = StorageResult<Option<Model>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
id: &'life1 str
) -> Pin<Box<dyn Future<Output = StorageResult<Option<Model>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
pub fn is_ready<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = StorageResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self
) -> Pin<Box<dyn Future<Output = StorageResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
pub fn create_global_model_id(round_id: u64, round_seed: &RoundSeed) -> String
[src]
Auto Trait Implementations
impl<C, M> RefUnwindSafe for Store<C, M> where
C: RefUnwindSafe,
M: RefUnwindSafe,
[src]
C: RefUnwindSafe,
M: RefUnwindSafe,
impl<C, M> Send for Store<C, M>
[src]
impl<C, M> Sync for Store<C, M>
[src]
impl<C, M> Unpin for Store<C, M> where
C: Unpin,
M: Unpin,
[src]
C: Unpin,
M: Unpin,
impl<C, M> UnwindSafe for Store<C, M> where
C: UnwindSafe,
M: UnwindSafe,
[src]
C: UnwindSafe,
M: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,