[][src]Struct sqs_lambda::SqsService

pub struct SqsService<R, E, H, C> where
    R: EventRetriever<E> + Clone,
    H: EventHandler<E>,
    C: SqsCompletionHandler + Clone,
    E: Send + 'static, 
{ pub retriever: R, pub handler: H, pub sqs_completion_handler: C, pub _e: PhantomData<E>, }

Fields

retriever: Rhandler: Hsqs_completion_handler: C_e: PhantomData<E>

Methods

impl<R, E, H, C> SqsService<R, E, H, C> where
    R: EventRetriever<E> + Clone + Send + 'static,
    H: EventHandler<E> + Clone + Send + 'static,
    C: SqsCompletionHandler + Clone + Send + 'static,
    E: Send + 'static, 
[src]

pub fn new(retriever: R, handler: H, sqs_completion_handler: C) -> Self
[src]

impl<R, E, H, C> SqsService<R, E, H, C> where
    R: EventRetriever<E> + Clone + Send + 'static,
    H: EventHandler<E> + Clone + Send + 'static,
    C: SqsCompletionHandler + Clone + Send + 'static,
    E: Send + 'static, 
[src]

pub fn run(
    &mut self,
    event: SqsEvent,
    context: Context
) -> Result<(), HandlerError>
[src]

Trait Implementations

impl<R: Clone, E: Clone, H: Clone, C: Clone> Clone for SqsService<R, E, H, C> where
    R: EventRetriever<E> + Clone,
    H: EventHandler<E>,
    C: SqsCompletionHandler + Clone,
    E: Send + 'static, 
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<R, E, H, C> Send for SqsService<R, E, H, C> where
    C: Send,
    H: Send,
    R: Send

impl<R, E, H, C> Sync for SqsService<R, E, H, C> where
    C: Sync,
    E: Sync,
    H: Sync,
    R: Sync

Blanket Implementations

impl<T> From for T
[src]

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

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

type Owned = T

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<T> Erased for T

impl<T> Same for T

type Output = T

Should always be Self