[][src]Struct sqs_lambda::s3_event_emitter::S3EventEmitter

pub struct S3EventEmitter<S, F, OnEmission, EmissionResult> where
    S: S3 + Send + 'static,
    F: Fn(&[u8]) -> String,
    EmissionResult: Future<Output = Result<(), Box<dyn Error + Send + Sync + 'static>>> + Send + 'static,
    OnEmission: Fn(String, String) -> EmissionResult + Send + Sync + 'static, 
{ /* fields omitted */ }

Methods

impl<S, F, OnEmission, EmissionResult> S3EventEmitter<S, F, OnEmission, EmissionResult> where
    S: S3 + Send + 'static,
    F: Fn(&[u8]) -> String,
    EmissionResult: Future<Output = Result<(), Box<dyn Error + Send + Sync + 'static>>> + Send + 'static,
    OnEmission: Fn(String, String) -> EmissionResult + Send + Sync + 'static, 
[src]

pub fn new(
    s3: S,
    output_bucket: impl Into<String>,
    key_fn: F,
    on_emission: OnEmission
) -> Self
[src]

Trait Implementations

impl<S: Clone, F: Clone, OnEmission: Clone, EmissionResult: Clone> Clone for S3EventEmitter<S, F, OnEmission, EmissionResult> where
    S: S3 + Send + 'static,
    F: Fn(&[u8]) -> String,
    EmissionResult: Future<Output = Result<(), Box<dyn Error + Send + Sync + 'static>>> + Send + 'static,
    OnEmission: Fn(String, String) -> EmissionResult + Send + Sync + 'static, 
[src]

impl<S, F, OnEmission, EmissionResult> EventEmitter for S3EventEmitter<S, F, OnEmission, EmissionResult> where
    S: S3 + Send + Sync + 'static,
    F: Fn(&[u8]) -> String + Send + Sync,
    EmissionResult: Future<Output = Result<(), Box<dyn Error + Send + Sync + 'static>>> + Send + 'static,
    OnEmission: Fn(String, String) -> EmissionResult + Send + Sync + 'static, 
[src]

type Event = Vec<u8>

type Error = Box<dyn Error>

Auto Trait Implementations

impl<S, F, OnEmission, EmissionResult> RefUnwindSafe for S3EventEmitter<S, F, OnEmission, EmissionResult> where
    F: RefUnwindSafe,
    OnEmission: RefUnwindSafe,
    S: RefUnwindSafe

impl<S, F, OnEmission, EmissionResult> Send for S3EventEmitter<S, F, OnEmission, EmissionResult> where
    F: Send

impl<S, F, OnEmission, EmissionResult> Sync for S3EventEmitter<S, F, OnEmission, EmissionResult> where
    F: Sync,
    S: Sync

impl<S, F, OnEmission, EmissionResult> Unpin for S3EventEmitter<S, F, OnEmission, EmissionResult> where
    F: Unpin,
    OnEmission: Unpin,
    S: Unpin

impl<S, F, OnEmission, EmissionResult> UnwindSafe for S3EventEmitter<S, F, OnEmission, EmissionResult> where
    F: UnwindSafe,
    OnEmission: UnwindSafe,
    S: UnwindSafe

Blanket Implementations

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

impl<T> Any for T where
    T: Any

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

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

impl<T> CloneAny for T where
    T: Clone + Any

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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>,