[][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> Unpin for SqsService<R, E, H, C> where
    C: Unpin,
    E: Unpin,
    H: Unpin,
    R: Unpin

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

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

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

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Erased for T

impl<T> Same<T> for T

type Output = T

Should always be Self