[]Struct nakadion::instrumentation::ProcessorMount

pub struct ProcessorMount { /* fields omitted */ }

A building block for grouping

Implementations

impl ProcessorMount

pub fn new<T>(name: T) -> ProcessorMount where
    T: Into<String>, 

Creates a new instance.

Even though a name is optional having one is the default since this struct is mostly used to group other components.

pub fn name(&self) -> Option<&str>

Returns the name

pub fn set_name<T>(&mut self, name: T) where
    T: Into<String>, 

Sets the name of this ProcessorMount

pub fn set_inactivity_limit(&mut self, limit: Duration)

Sets the maximum amount of time this processor may be inactive until no more snapshots are taken

pub fn processors(&self) -> Vec<&(dyn ProcessesTelemetryMessages + 'static)>

Returns the processors in this ProcessorMount

pub fn snapshooters(&self) -> Vec<&(dyn PutsSnapshot + 'static)>

Returns the snapshooters of this ProcessorMount

pub fn add_processor_dyn(
    &mut self,
    processor: Box<dyn ProcessesTelemetryMessages + 'static>
)

pub fn add_snapshooter_dyn(
    &mut self,
    snapshooter: Box<dyn PutsSnapshot + 'static>
)

Trait Implementations

impl AggregatesProcessors for ProcessorMount

impl Default for ProcessorMount

impl Descriptive for ProcessorMount

impl ProcessesTelemetryMessages for ProcessorMount

impl PutsSnapshot for ProcessorMount

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,