Skip to content
API REFERENCEUsage guides →

cellpack::opt::defaults::Tier ​

enum

Module contract · All interfaces

At a glance ​

pub enum Tier {
    Nvme,
    Ssd,
    Hdd,
    Network,
    Memory,
}

A class of storage, for its default device rates.

Fields and variants ​

Nvme ​

Nvme

A local NVMe device.

Ssd ​

Ssd

A local SATA or SAS SSD.

Hdd ​

Hdd

A spinning local disk.

Network ​

Network

A network filesystem.

Memory ​

Memory

Pages served from main memory.

Member index ​

3 of 3 members

  • ALLEvery tier, in declaration order.
  • nameThe tier’s name in configuration and reports.
  • namedThe tier of a name; unknown names are NVMe, the tier assumed where storage is not recognized.

Methods and associated constants ​

ALL ​

pub const ALL: [Tier; 5]

Every tier, in declaration order.

name ​

pub fn name(self) -> &'static str

The tier’s name in configuration and reports.

named ​

pub fn named(name: &str) -> Tier

The tier of a name; unknown names are NVMe, the tier assumed where storage is not recognized.

Implemented traits ​

impl Clone for Tier
impl Debug for Tier
impl Hash for Tier
impl PartialEq for Tier

Contract reference ​

See the module reference for semantic input/output rules, units, allocation, mutation, failure behavior, and lifetime requirements. Declarations and documented members are synchronized from the crate source.

Definition