pub enum Tier {
External,
Internal,
}Expand description
Variants§
Implementations§
Source§impl Tier
impl Tier
Sourcepub fn as_str(self) -> &'static str
pub fn as_str(self) -> &'static str
Label for this tier, e.g. a metrics label. The default (external /
customer) tier is the empty string ""; cluster-peer traffic is
"internal". This mirrors the .stats wire convention, where the
default tier is unprefixed (publisher.json) and the internal tier is
internal/-prefixed, and leaves room for the default to become one of
several configurable tier names later.
Trait Implementations§
impl Copy for Tier
impl Eq for Tier
impl StructuralPartialEq for Tier
Auto Trait Implementations§
impl Freeze for Tier
impl RefUnwindSafe for Tier
impl Send for Tier
impl Sync for Tier
impl Unpin for Tier
impl UnsafeUnpin for Tier
impl UnwindSafe for Tier
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