pub struct RegisterAction<'a> { /* private fields */ }Implementations§
Source§impl RegisterAction<'_>
impl RegisterAction<'_>
pub fn child(&mut self) -> RegisterAction<'_>
pub fn name_prefix<S: Into<String>>(&mut self, prefix: S) -> &mut Self
pub fn base_attr<K: Into<Cow<'static, str>>, V: Into<Cow<'static, str>>>( &mut self, key: K, value: V, ) -> &mut Self
pub fn count<N: Into<Cow<'static, str>>>( &mut self, name: N, count: &'static IntCounter, ) -> RegisterHelper<'_>
pub fn gauge<N: Into<Cow<'static, str>>>( &mut self, name: N, gauge: &'static IntGauge, ) -> RegisterHelper<'_>
pub fn group<N: Into<Cow<'static, str>>>( &mut self, prefix: N, ) -> RegisterHelper<'_>
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> 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