[][src]Trait xaynet_sdk::ModelStore

pub trait ModelStore {
    type Error: Error;
    type Model: AsRef<Model> + Send;
#[must_use]    pub fn load_model<'life0, 'async_trait>(
        &'life0 mut self
    ) -> Pin<Box<dyn Future<Output = Result<Option<Self::Model>, Self::Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }

A trait used by the StateMachine to load the model trained by the participant, when it has been selected for the update task.

Associated Types

Loading content...

Required methods

#[must_use]pub fn load_model<'life0, 'async_trait>(
    &'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<Option<Self::Model>, Self::Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Attempt to load the model. If the model is not yet available, Ok(None) should be returned.

Loading content...

Implementors

Loading content...