RegisterAction

Struct RegisterAction 

Source
pub struct RegisterAction<'a> { /* private fields */ }

Implementations§

Source§

impl RegisterAction<'_>

Source

pub fn child(&mut self) -> RegisterAction<'_>

Source

pub fn name_prefix<S: Into<String>>(&mut self, prefix: S) -> &mut Self

Source

pub fn base_attr<K: Into<Cow<'static, str>>, V: Into<Cow<'static, str>>>( &mut self, key: K, value: V, ) -> &mut Self

Source

pub fn count<N: Into<Cow<'static, str>>>( &mut self, name: N, count: &'static IntCounter, ) -> RegisterHelper<'_>

Source

pub fn gauge<N: Into<Cow<'static, str>>>( &mut self, name: N, gauge: &'static IntGauge, ) -> RegisterHelper<'_>

Source

pub fn group<N: Into<Cow<'static, str>>>( &mut self, prefix: N, ) -> RegisterHelper<'_>

Source

pub fn empty(&mut self) -> RegisterHelper<'_>

Auto Trait Implementations§

§

impl<'a> Freeze for RegisterAction<'a>

§

impl<'a> RefUnwindSafe for RegisterAction<'a>

§

impl<'a> Send for RegisterAction<'a>

§

impl<'a> Sync for RegisterAction<'a>

§

impl<'a> Unpin for RegisterAction<'a>

§

impl<'a> !UnwindSafe for RegisterAction<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.