[][src]Enum xaynet::mask::ModelType

#[repr(u8)]pub enum ModelType {
    M3,
    M6,
    M9,
    M12,
}

The maximum number of models to be aggregated.

Variants

M3

At most 1_000 models to be aggregated.

M6

At most 1_000_000 models to be aggregated.

M9

At most 1_000_000_000 models to be aggregated.

M12

At most 1_000_000_000_000 models to be aggregated.

Implementations

impl ModelType[src]

pub fn max_nb_models(&self) -> usize[src]

Gets the maximum number of models that can be aggregated for this model type.

Trait Implementations

impl Clone for ModelType[src]

impl Copy for ModelType[src]

impl Debug for ModelType[src]

impl<'de> Deserialize<'de> for ModelType[src]

impl Eq for ModelType[src]

impl Hash for ModelType[src]

impl PartialEq<ModelType> for ModelType[src]

impl Serialize for ModelType[src]

impl StructuralEq for ModelType[src]

impl StructuralPartialEq for ModelType[src]

impl TryFrom<u8> for ModelType[src]

type Error = InvalidMaskConfigError

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]