[−][src]Struct spirit_dipstick::Backends
An intermediate resource produced by Config
.
This contains all the parts ready to be used.
Fields (Non-exhaustive)
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.outputs: MultiInput
A composed output for the metrics.
This can be manually installed into an AtomicBucket
, or automatically used through a
pipeline and installed into the Monitor
.
prefix: String
The configured prefix at the root of the metrics tree.
flush_period: Duration
How often should the metrics be sent.
Trait Implementations
impl<F, O, C> Installer<Backends, O, C> for MonitorInstaller<F> where
F: Fn(InputKind, MetricName, ScoreType) -> Option<(InputKind, MetricName, MetricValue)> + Send + Sync + 'static,
[src]
F: Fn(InputKind, MetricName, ScoreType) -> Option<(InputKind, MetricName, MetricValue)> + Send + Sync + 'static,
type UninstallHandle = Uninstaller
A handle representing lifetime of the resource. Read more
fn install(&mut self, backends: Backends, name: &'static str) -> Uninstaller
[src]
fn init<B>(
&mut self,
builder: B,
_name: &'static str
) -> Result<B, Box<dyn Error + 'static + Sync + Send>> where
B: Extensible<Opts = O, Config = C, Ok = B>,
<B as Extensible>::Config: DeserializeOwned,
<B as Extensible>::Config: Send,
<B as Extensible>::Config: Sync,
<B as Extensible>::Config: 'static,
<B as Extensible>::Opts: StructOpt,
<B as Extensible>::Opts: Send,
<B as Extensible>::Opts: Sync,
<B as Extensible>::Opts: 'static,
[src]
&mut self,
builder: B,
_name: &'static str
) -> Result<B, Box<dyn Error + 'static + Sync + Send>> where
B: Extensible<Opts = O, Config = C, Ok = B>,
<B as Extensible>::Config: DeserializeOwned,
<B as Extensible>::Config: Send,
<B as Extensible>::Config: Sync,
<B as Extensible>::Config: 'static,
<B as Extensible>::Opts: StructOpt,
<B as Extensible>::Opts: Send,
<B as Extensible>::Opts: Sync,
<B as Extensible>::Opts: 'static,
Auto Trait Implementations
impl !RefUnwindSafe for Backends
impl Send for Backends
impl Sync for Backends
impl Unpin for Backends
impl !UnwindSafe for Backends
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoResult<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,