[−][src]Struct sqs_lambda::sqs_consumer::SqsConsumer
Methods
impl<S, CH> SqsConsumer<S, CH> where
S: Sqs + Send + Sync + 'static,
CH: CompletionHandler + Clone + Send + Sync + 'static,
[src]
S: Sqs + Send + Sync + 'static,
CH: CompletionHandler + Clone + Send + Sync + 'static,
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]
sqs_client: S,
queue_url: String,
consume_policy: ConsumePolicy,
completion_handler: CH,
shutdown_subscriber: Sender<()>
) -> SqsConsumer<S, CH> where
S: Sqs,
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]
&'_ self,
wait_time_seconds: i64
) -> Result<Vec<SqsMessage>, RusotoError<ReceiveMessageError>>
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]
&'_ mut self,
event_processor: EventProcessorActor<SqsMessage>
)
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]
fn route_message<'life0, 'async_trait>(
&'life0 mut self,
message: SqsConsumerMessage<S, CH>
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
message: SqsConsumerMessage<S, CH>
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn get_actor_name(&self) -> &str
[src]
fn close(&mut self)
[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,
CH: Unpin,
S: Unpin,
impl<S, CH> !UnwindSafe for SqsConsumer<S, CH>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,