pub struct StreamBuilderWithName<Q, T, K, E> {
pub queue_name: Option<Q>,
pub tag: T,
pub exchange: E,
pub routing_key: K,
pub incompatible_delete: bool,
pub qos: Option<(u16, Option<BasicQosOptions>)>,
pub declare: Option<QueueDeclareOptions>,
pub declare_fields: Option<FieldTable>,
pub binding: Option<QueueBindOptions>,
pub binding_fields: Option<FieldTable>,
pub consume: Option<BasicConsumeOptions>,
pub consume_fields: Option<FieldTable>,
}Fields§
§queue_name: Option<Q>Gives this name to the queue, or the default would be the routing_key.
tag: TThe tag of the consumer
exchange: EThe exchange where to bind this queue
routing_key: KThe routing key of the consumer
incompatible_delete: boolWhen creating the queue, delete the old if it is not compatible
qos: Option<(u16, Option<BasicQosOptions>)>§declare: Option<QueueDeclareOptions>§declare_fields: Option<FieldTable>§binding: Option<QueueBindOptions>§binding_fields: Option<FieldTable>§consume: Option<BasicConsumeOptions>§consume_fields: Option<FieldTable>Implementations§
Source§impl<Q, T, K, E> StreamBuilderWithName<Q, T, K, E>
impl<Q, T, K, E> StreamBuilderWithName<Q, T, K, E>
Sourcepub async fn create_plain(
self,
) -> impl StreamExt<Item = Delivery> + Unpin + Send
pub async fn create_plain( self, ) -> impl StreamExt<Item = Delivery> + Unpin + Send
Creates a consumer which returns channel and the delivery.
Sourcepub async fn create<I: Deserialise>(
self,
) -> impl StreamExt<Item = (Acker, Result<I>)> + Unpin + Send
pub async fn create<I: Deserialise>( self, ) -> impl StreamExt<Item = (Acker, Result<I>)> + Unpin + Send
Creates a consumer which returns an acker and the deserialised item
Sourcepub async fn create_auto_ack<I: Deserialise>(
self,
) -> impl StreamExt<Item = (AutoAck, Result<I>)> + Unpin + Send
pub async fn create_auto_ack<I: Deserialise>( self, ) -> impl StreamExt<Item = (AutoAck, Result<I>)> + Unpin + Send
Creates a consumer which returns autoack and the item
Trait Implementations§
Auto Trait Implementations§
impl<Q, T, K, E> Freeze for StreamBuilderWithName<Q, T, K, E>
impl<Q, T, K, E> RefUnwindSafe for StreamBuilderWithName<Q, T, K, E>
impl<Q, T, K, E> Send for StreamBuilderWithName<Q, T, K, E>
impl<Q, T, K, E> Sync for StreamBuilderWithName<Q, T, K, E>
impl<Q, T, K, E> Unpin for StreamBuilderWithName<Q, T, K, E>
impl<Q, T, K, E> UnwindSafe for StreamBuilderWithName<Q, T, K, E>
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more