[−]Struct nakadion::consumer::ProcessorMount
A building block for grouping
Methods
impl ProcessorMount
pub fn new<T>(name: T) -> ProcessorMount where
T: Into<String>,
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>,
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
Trait Implementations
impl AggregatesProcessors for ProcessorMount
fn add_processor<P>(&mut self, processor: P) where
P: ProcessesTelemetryMessages,
P: ProcessesTelemetryMessages,
fn add_snapshooter<S>(&mut self, snapshooter: S) where
S: PutsSnapshot,
S: PutsSnapshot,
impl Default for ProcessorMount
fn default() -> ProcessorMount
impl Descriptive for ProcessorMount
impl ProcessesTelemetryMessages for ProcessorMount
impl PutsSnapshot for ProcessorMount
fn put_snapshot(&self, into: &mut Snapshot, descriptive: bool)
Auto Trait Implementations
impl !RefUnwindSafe for ProcessorMount
impl Send for ProcessorMount
impl !Sync for ProcessorMount
impl Unpin for ProcessorMount
impl !UnwindSafe for ProcessorMount
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, 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,