pub enum ScalePreset {
Tiny,
Small,
Medium,
Large,
XLarge,
Max,
}Expand description
Scale presets for common scenarios.
Variants§
Tiny
10 devices - quick validation.
Small
100 devices - development.
Medium
1,000 devices - integration.
Large
10,000 devices - performance.
XLarge
50,000 devices - stress.
Max
100,000 devices - capacity.
Implementations§
Source§impl ScalePreset
impl ScalePreset
Sourcepub fn to_config(self) -> ScaleConfig
pub fn to_config(self) -> ScaleConfig
Convert to ScaleConfig.
Sourcepub fn all() -> &'static [ScalePreset]
pub fn all() -> &'static [ScalePreset]
Get all presets.
Trait Implementations§
Source§impl Clone for ScalePreset
impl Clone for ScalePreset
Source§fn clone(&self) -> ScalePreset
fn clone(&self) -> ScalePreset
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScalePreset
impl Debug for ScalePreset
Source§impl<'de> Deserialize<'de> for ScalePreset
impl<'de> Deserialize<'de> for ScalePreset
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<ScalePreset> for ScaleConfig
impl From<ScalePreset> for ScaleConfig
Source§fn from(preset: ScalePreset) -> Self
fn from(preset: ScalePreset) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ScalePreset
impl PartialEq for ScalePreset
Source§impl Serialize for ScalePreset
impl Serialize for ScalePreset
impl Copy for ScalePreset
impl Eq for ScalePreset
impl StructuralPartialEq for ScalePreset
Auto Trait Implementations§
impl Freeze for ScalePreset
impl RefUnwindSafe for ScalePreset
impl Send for ScalePreset
impl Sync for ScalePreset
impl Unpin for ScalePreset
impl UnsafeUnpin for ScalePreset
impl UnwindSafe for ScalePreset
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.