pub enum ComponentRole {
Index,
Aggregator,
Model,
Codec,
DataSource,
PeerSelector,
Backend,
Protocol,
}Expand description
One concrete framework role a component declares.
Variants§
Index
Index role — vector-index Contract.
Aggregator
Aggregator role — federated-aggregator Contract.
Model
Model role — ML-model Contract.
Codec
Codec role — bidirectional storage-type codec Contract.
DataSource
DataSource role — data-loader Contract.
PeerSelector
PeerSelector role — peer-sampling Contract.
Backend
Backend role — tensor-compute Contract.
Protocol
Protocol role — custom-protocol Contract.
Trait Implementations§
Source§impl Clone for ComponentRole
impl Clone for ComponentRole
Source§fn clone(&self) -> ComponentRole
fn clone(&self) -> ComponentRole
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ComponentRole
Source§impl Debug for ComponentRole
impl Debug for ComponentRole
impl Eq for ComponentRole
Source§impl Hash for ComponentRole
impl Hash for ComponentRole
Source§impl PartialEq for ComponentRole
impl PartialEq for ComponentRole
Source§fn eq(&self, other: &ComponentRole) -> bool
fn eq(&self, other: &ComponentRole) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ComponentRole
Auto Trait Implementations§
impl Freeze for ComponentRole
impl RefUnwindSafe for ComponentRole
impl Send for ComponentRole
impl Sync for ComponentRole
impl Unpin for ComponentRole
impl UnsafeUnpin for ComponentRole
impl UnwindSafe for ComponentRole
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