Map

Trait Map 

Source
pub trait Map<T, U, C>:
    Send
    + Sync
    + FromConfig<C> {
    // Required method
    fn map<'life0, 'async_trait>(
        &'life0 mut self,
        data: T,
    ) -> Pin<Box<dyn Future<Output = Result<U>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn map<'life0, 'async_trait>( &'life0 mut self, data: T, ) -> Pin<Box<dyn Future<Output = Result<U>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl Map<String, Vec<String>, StringSplitterConfig> for StringSplitter

§Parameters

  • String: input
  • Vec: output
Source§

impl Map<Vec<u8>, PathBuf, FileWriterConfig> for FileWriter

Source§

impl<I, T, K, V> Map<T, Vec<Pair<K, V>>, OrderedGroupAddAggregatorConfig> for OrderedGroupAddAggregator
where I: GroupAs<K> + AggregateAs<V>, K: Ord, V: AddAssign<V> + Init + Clone, T: IntoIterator<Item = I> + Send + 'static,

§Parameters

  • T: input
  • Vec<Pair<K, V>>: output
  • K: group value
  • V: aggregate value
Source§

impl<I, T, K, V> Map<T, Vec<Pair<K, V>>, UnorderedGroupAddAggregatorConfig> for UnorderedGroupAddAggregator
where I: GroupAs<K> + AggregateAs<V>, K: Hash + Eq + PartialEq, V: AddAssign<V> + Init + Clone, T: IntoIterator<Item = I> + Send + 'static,

Source§

impl<I, T, U> Map<T, Vec<U>, TopAggregatorConfig> for TopAggregator
where I: AggregateAs<Vec<U>>, U: Ord + Clone, T: IntoIterator<Item = I> + Send + 'static,

§Parameters

  • T: input
  • Vec: output
Source§

impl<I, T, U> Map<T, U, AddAggregatorConfig> for AddAggregator
where I: AggregateAs<U>, U: AddAssign<U> + Init, T: IntoIterator<Item = I> + Send + 'static,

Source§

impl<P> Map<P, Vec<u8>, FileReaderConfig> for FileReader
where P: AsRef<Path> + Send + 'static,

§Parameters

  • P, file path: input
  • Vec, bytes: output
Source§

impl<T> Map<T, T, EchoConfig> for Echo
where T: Clone + Debug + Send + 'static,

§Parameters

  • T: input
  • T: output
Source§

impl<T, U> Map<T, U, ConversionConfig> for Conversion
where T: Send + 'static, U: Convert<T>,

§Parameters

  • T: input
  • U: output
Source§

impl<T, U> Map<T, U, FieldVisitConfig> for FieldVisit
where T: FieldAccept<U> + Send + 'static,

§Parameters

  • T: input
  • U, field of T: output
Source§

impl<T, U> Map<T, U, ProjectionConfig> for Projection
where T: Send + 'static, U: Project<T>,

§Parameters

  • T: input
  • U: output
Source§

impl<T, U, V> Map<U, V, FilterMapConfig> for FilterMap
where T: Filter + Clone + Sync, U: IntoIterator<Item = T> + Send + Clone + 'static, V: FromIterator<T> + Send,

§Parameters

  • U: input
  • V: output