pub trait Queue:
Send
+ Sync
+ Debug
+ 'static {
// Required methods
fn name(&self) -> &'static str;
fn publish<'life0, 'async_trait>(
&'life0 self,
message: QueueMessage,
) -> Pin<Box<dyn Future<Output = QueueResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn receive<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = QueueResult<QueueDelivery>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn ack<'life0, 'async_trait>(
&'life0 self,
receipt: QueueReceipt,
) -> Pin<Box<dyn Future<Output = QueueResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided methods
fn features(&self) -> QueueFeatures { ... }
fn publish_many<'life0, 'async_trait>(
&'life0 self,
items: Vec<QueueMessage>,
) -> Pin<Box<dyn Future<Output = QueueResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
fn receive_many<'life0, 'async_trait>(
&'life0 self,
max: usize,
) -> Pin<Box<dyn Future<Output = QueueResult<Vec<QueueDelivery>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
fn ack_many<'life0, 'async_trait>(
&'life0 self,
receipts: Vec<QueueReceipt>,
) -> Pin<Box<dyn Future<Output = QueueResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
fn nack<'life0, 'async_trait>(
&'life0 self,
_receipt: QueueReceipt,
action: NackAction,
) -> Pin<Box<dyn Future<Output = QueueResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
fn nack_many<'life0, 'async_trait>(
&'life0 self,
receipts: Vec<QueueReceipt>,
action: NackAction,
) -> Pin<Box<dyn Future<Output = QueueResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
fn ping<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = QueueResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
}Required Methods§
fn name(&self) -> &'static str
fn publish<'life0, 'async_trait>(
&'life0 self,
message: QueueMessage,
) -> Pin<Box<dyn Future<Output = QueueResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn receive<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = QueueResult<QueueDelivery>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn ack<'life0, 'async_trait>(
&'life0 self,
receipt: QueueReceipt,
) -> Pin<Box<dyn Future<Output = QueueResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Provided Methods§
fn features(&self) -> QueueFeatures
fn publish_many<'life0, 'async_trait>(
&'life0 self,
items: Vec<QueueMessage>,
) -> Pin<Box<dyn Future<Output = QueueResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn receive_many<'life0, 'async_trait>(
&'life0 self,
max: usize,
) -> Pin<Box<dyn Future<Output = QueueResult<Vec<QueueDelivery>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn ack_many<'life0, 'async_trait>(
&'life0 self,
receipts: Vec<QueueReceipt>,
) -> Pin<Box<dyn Future<Output = QueueResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn nack<'life0, 'async_trait>(
&'life0 self,
_receipt: QueueReceipt,
action: NackAction,
) -> Pin<Box<dyn Future<Output = QueueResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn nack_many<'life0, 'async_trait>(
&'life0 self,
receipts: Vec<QueueReceipt>,
action: NackAction,
) -> Pin<Box<dyn Future<Output = QueueResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn ping<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = QueueResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".