[][src]Struct sqs_lambda::sqs_consumer::SqsConsumer

pub struct SqsConsumer<S, CH> where
    S: Sqs + Send + Sync + 'static,
    CH: CompletionHandler + Clone + Send + Sync + 'static, 
{ /* fields omitted */ }

Methods

impl<S, CH> SqsConsumer<S, CH> where
    S: Sqs + Send + Sync + 'static,
    CH: CompletionHandler + Clone + Send + Sync + 'static, 
[src]

pub fn new(
    sqs_client: S,
    queue_url: String,
    consume_policy: ConsumePolicy,
    completion_handler: CH,
    shutdown_subscriber: Sender<()>
) -> SqsConsumer<S, CH> where
    S: Sqs
[src]

impl<S: Sqs + Send + Sync + 'static, CH: CompletionHandler + Clone + Send + Sync + 'static> SqsConsumer<S, CH>[src]

pub async fn batch_get_events<'_>(
    &'_ self,
    wait_time_seconds: i64
) -> Result<Vec<SqsMessage>, RusotoError<ReceiveMessageError>>
[src]

impl<S: Sqs + Send + Sync + 'static, CH: CompletionHandler + Clone + Send + Sync + 'static> SqsConsumer<S, CH>[src]

pub async fn get_new_event<'_>(
    &'_ mut self,
    event_processor: EventProcessorActor<SqsMessage>
)
[src]

pub async fn _p<'_>(&'_ self, __p: PhantomData<(S, CH)>)[src]

Trait Implementations

impl<S: Sqs + Send + Sync + 'static, CH: CompletionHandler + Clone + Send + Sync + 'static> Actor<SqsConsumerMessage<S, CH>> for SqsConsumer<S, CH>[src]

Auto Trait Implementations

impl<S, CH> !RefUnwindSafe for SqsConsumer<S, CH>

impl<S, CH> Send for SqsConsumer<S, CH>

impl<S, CH> Sync for SqsConsumer<S, CH>

impl<S, CH> Unpin for SqsConsumer<S, CH> where
    CH: Unpin,
    S: Unpin

impl<S, CH> !UnwindSafe for SqsConsumer<S, CH>

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