[−][src]Struct sqs_lambda::sqs_completion_handler::SqsCompletionHandler
Methods
impl<SqsT, CPE, CP, CE, Payload, EE, OA, CacheT, ProcErr> SqsCompletionHandler<SqsT, CPE, CP, CE, Payload, EE, OA, CacheT, ProcErr> where
SqsT: Sqs + Clone + Send + Sync + 'static,
CPE: Debug + Send + Sync + 'static,
CP: CompletionEventSerializer<CompletedEvent = CE, Output = Payload, Error = CPE> + Send + Sync + 'static,
Payload: Send + Sync + 'static,
CE: Send + Sync + Clone + 'static,
EE: EventEmitter<Event = Payload> + Send + Sync + 'static,
OA: Fn(SqsCompletionHandlerActor<CE, ProcErr, SqsT>, Result<String, String>) + Send + Sync + 'static,
CacheT: Cache<ProcErr> + Send + Sync + Clone + 'static,
ProcErr: Debug + Clone + Send + Sync + 'static, [src]
SqsT: Sqs + Clone + Send + Sync + 'static,
CPE: Debug + Send + Sync + 'static,
CP: CompletionEventSerializer<CompletedEvent = CE, Output = Payload, Error = CPE> + Send + Sync + 'static,
Payload: Send + Sync + 'static,
CE: Send + Sync + Clone + 'static,
EE: EventEmitter<Event = Payload> + Send + Sync + 'static,
OA: Fn(SqsCompletionHandlerActor<CE, ProcErr, SqsT>, Result<String, String>) + Send + Sync + 'static,
CacheT: Cache<ProcErr> + Send + Sync + Clone + 'static,
ProcErr: Debug + Clone + Send + Sync + 'static,
pub fn new(
sqs_client: SqsT,
queue_url: String,
completion_serializer: CP,
event_emitter: EE,
completion_policy: CompletionPolicy,
on_ack: OA,
cache: CacheT
) -> Self[src]
sqs_client: SqsT,
queue_url: String,
completion_serializer: CP,
event_emitter: EE,
completion_policy: CompletionPolicy,
on_ack: OA,
cache: CacheT
) -> Self
impl<SqsT, CPE, CP, CE, Payload, EE, OA, CacheT, ProcErr> SqsCompletionHandler<SqsT, CPE, CP, CE, Payload, EE, OA, CacheT, ProcErr> where
SqsT: Sqs + Clone + Send + Sync + 'static,
CPE: Debug + Send + Sync + 'static,
CP: CompletionEventSerializer<CompletedEvent = CE, Output = Payload, Error = CPE> + Send + Sync + 'static,
Payload: Send + Sync + 'static,
CE: Send + Sync + Clone + 'static,
EE: EventEmitter<Event = Payload> + Send + Sync + 'static,
OA: Fn(SqsCompletionHandlerActor<CE, ProcErr, SqsT>, Result<String, String>) + Send + Sync + 'static,
CacheT: Cache<ProcErr> + Send + Sync + Clone + 'static,
ProcErr: Debug + Clone + Send + Sync + 'static, [src]
SqsT: Sqs + Clone + Send + Sync + 'static,
CPE: Debug + Send + Sync + 'static,
CP: CompletionEventSerializer<CompletedEvent = CE, Output = Payload, Error = CPE> + Send + Sync + 'static,
Payload: Send + Sync + 'static,
CE: Send + Sync + Clone + 'static,
EE: EventEmitter<Event = Payload> + Send + Sync + 'static,
OA: Fn(SqsCompletionHandlerActor<CE, ProcErr, SqsT>, Result<String, String>) + Send + Sync + 'static,
CacheT: Cache<ProcErr> + Send + Sync + Clone + 'static,
ProcErr: Debug + Clone + Send + Sync + 'static,
pub async fn mark_complete<'_>(
&'_ mut self,
sqs_message: SqsMessage,
completed: OutputEvent<CE, ProcErr>
)[src]
&'_ mut self,
sqs_message: SqsMessage,
completed: OutputEvent<CE, ProcErr>
)
pub async fn ack_all<'_>(&'_ mut self, notify: Option<Sender<()>>)[src]
Trait Implementations
impl<SqsT, CPE, CP, CE, Payload, EE, OA, CacheT, ProcErr> Actor<SqsCompletionHandlerMessage<CE, ProcErr, SqsT>> for SqsCompletionHandler<SqsT, CPE, CP, CE, Payload, EE, OA, CacheT, ProcErr> where
SqsT: Sqs + Clone + Send + Sync + 'static,
CPE: Debug + Send + Sync + 'static,
CP: CompletionEventSerializer<CompletedEvent = CE, Output = Payload, Error = CPE> + Send + Sync + 'static,
Payload: Send + Sync + 'static,
CE: Send + Sync + Clone + 'static,
EE: EventEmitter<Event = Payload> + Send + Sync + 'static,
OA: Fn(SqsCompletionHandlerActor<CE, ProcErr, SqsT>, Result<String, String>) + Send + Sync + 'static,
CacheT: Cache<ProcErr> + Send + Sync + Clone + 'static,
ProcErr: Debug + Clone + Send + Sync + 'static, [src]
SqsT: Sqs + Clone + Send + Sync + 'static,
CPE: Debug + Send + Sync + 'static,
CP: CompletionEventSerializer<CompletedEvent = CE, Output = Payload, Error = CPE> + Send + Sync + 'static,
Payload: Send + Sync + 'static,
CE: Send + Sync + Clone + 'static,
EE: EventEmitter<Event = Payload> + Send + Sync + 'static,
OA: Fn(SqsCompletionHandlerActor<CE, ProcErr, SqsT>, Result<String, String>) + Send + Sync + 'static,
CacheT: Cache<ProcErr> + Send + Sync + Clone + 'static,
ProcErr: Debug + Clone + Send + Sync + 'static,
fn route_message<'life0, 'async_trait>(
&'life0 mut self,
msg: SqsCompletionHandlerMessage<CE, ProcErr, SqsT>
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait, [src]
&'life0 mut self,
msg: SqsCompletionHandlerMessage<CE, ProcErr, SqsT>
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn close(&mut self)[src]
fn get_actor_name(&self) -> &str[src]
Auto Trait Implementations
impl<SqsT, CPE, CP, CE, Payload, EE, OA, CacheT, ProcErr> !RefUnwindSafe for SqsCompletionHandler<SqsT, CPE, CP, CE, Payload, EE, OA, CacheT, ProcErr>
impl<SqsT, CPE, CP, CE, Payload, EE, OA, CacheT, ProcErr> Send for SqsCompletionHandler<SqsT, CPE, CP, CE, Payload, EE, OA, CacheT, ProcErr>
impl<SqsT, CPE, CP, CE, Payload, EE, OA, CacheT, ProcErr> Sync for SqsCompletionHandler<SqsT, CPE, CP, CE, Payload, EE, OA, CacheT, ProcErr>
impl<SqsT, CPE, CP, CE, Payload, EE, OA, CacheT, ProcErr> Unpin for SqsCompletionHandler<SqsT, CPE, CP, CE, Payload, EE, OA, CacheT, ProcErr> where
CE: Unpin,
CP: Unpin,
CacheT: Unpin,
EE: Unpin,
OA: Unpin,
ProcErr: Unpin,
SqsT: Unpin,
CE: Unpin,
CP: Unpin,
CacheT: Unpin,
EE: Unpin,
OA: Unpin,
ProcErr: Unpin,
SqsT: Unpin,
impl<SqsT, CPE, CP, CE, Payload, EE, OA, CacheT, ProcErr> !UnwindSafe for SqsCompletionHandler<SqsT, CPE, CP, CE, Payload, EE, OA, CacheT, ProcErr>
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>,