pub struct FederatedLearningManager { /* private fields */ }Expand description
Federated learning manager
Implementations§
Source§impl FederatedLearningManager
impl FederatedLearningManager
Sourcepub fn add_node(&mut self, node: FederatedNode)
pub fn add_node(&mut self, node: FederatedNode)
Add a node to the federation
Sourcepub fn remove_node(&mut self, node_id: &str) -> Result<(), Box<dyn Error>>
pub fn remove_node(&mut self, node_id: &str) -> Result<(), Box<dyn Error>>
Remove a node from the federation
Sourcepub fn list_nodes(&self) -> &[FederatedNode]
pub fn list_nodes(&self) -> &[FederatedNode]
List all nodes in the federation
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FederatedLearningManager
impl RefUnwindSafe for FederatedLearningManager
impl Send for FederatedLearningManager
impl Sync for FederatedLearningManager
impl Unpin for FederatedLearningManager
impl UnwindSafe for FederatedLearningManager
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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