pub struct InMemorySetCollectorConfig {
pub flush_period: Period,
}Fields§
§flush_period: PeriodTrait Implementations§
Source§impl<T> Collect<T, Vec<T>, InMemorySetCollectorConfig> for InMemorySetCollector<T>
§Parameters
- T: input
- Vec
: output
impl<T> Collect<T, Vec<T>, InMemorySetCollectorConfig> for InMemorySetCollector<T>
§Parameters
- T: input
- Vec
: output
Source§fn get_flush_interval(&self) -> Interval
fn get_flush_interval(&self) -> Interval
Call by collector pipe to flush set in period
fn collect<'life0, 'async_trait>(
&'life0 mut self,
t: T,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn flush<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<T>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§impl<T> ConfigInto<InMemorySetCollector<T>> for InMemorySetCollectorConfig
impl<T> ConfigInto<InMemorySetCollector<T>> for InMemorySetCollectorConfig
Source§impl<'de> Deserialize<'de> for InMemorySetCollectorConfig
impl<'de> Deserialize<'de> for InMemorySetCollectorConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T> FromConfig<InMemorySetCollectorConfig> for InMemorySetCollector<T>
impl<T> FromConfig<InMemorySetCollectorConfig> for InMemorySetCollector<T>
fn from_config<'async_trait>(
config: InMemorySetCollectorConfig,
) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>>where
Self: 'async_trait,
Auto Trait Implementations§
impl Freeze for InMemorySetCollectorConfig
impl RefUnwindSafe for InMemorySetCollectorConfig
impl Send for InMemorySetCollectorConfig
impl Sync for InMemorySetCollectorConfig
impl Unpin for InMemorySetCollectorConfig
impl UnsafeUnpin for InMemorySetCollectorConfig
impl UnwindSafe for InMemorySetCollectorConfig
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