Trait laminarmq::storage::AsyncConsume
source · pub trait AsyncConsume {
type ConsumeError: Error;
// Required methods
fn remove<'async_trait>(
self
) -> Pin<Box<dyn Future<Output = Result<(), Self::ConsumeError>> + 'async_trait>>
where Self: 'async_trait;
fn close<'async_trait>(
self
) -> Pin<Box<dyn Future<Output = Result<(), Self::ConsumeError>> + 'async_trait>>
where Self: 'async_trait;
}
Expand description
Trait representing a collection that can be closed or removed entirely.
Required Associated Types§
sourcetype ConsumeError: Error
type ConsumeError: Error
Error that can occur during a consumption operation.