[][src]Trait xaynet_sdk::Notify

pub trait Notify {
    pub fn new_round(&mut self) { ... }
pub fn sum(&mut self) { ... }
pub fn update(&mut self) { ... }
pub fn idle(&mut self) { ... }
pub fn load_model(&mut self) { ... } }

A trait used by the StateMachine to emit notifications upon certain events.

Provided methods

pub fn new_round(&mut self)[src]

Emit a notification when a new round of federated learning starts

pub fn sum(&mut self)[src]

Emit a notification when the participant has been selected for the sum task

pub fn update(&mut self)[src]

Emit a notification when the participant has been selected for the update task

pub fn idle(&mut self)[src]

Emit a notification when the participant is not selected for any task and is waiting for another round to start

pub fn load_model(&mut self)[src]

Emit a notification when the participant should populate the model store (see ModelStore).

Loading content...

Implementors

Loading content...