pub struct InterestQueueBuilder<T, C: CodecType> { /* private fields */ }Expand description
Builder for interest-based queues.
Implementations§
Source§impl<T, C: CodecType> InterestQueueBuilder<T, C>
impl<T, C: CodecType> InterestQueueBuilder<T, C>
Sourcepub fn max_messages(self, max: i64) -> Self
pub fn max_messages(self, max: i64) -> Self
Set the maximum number of messages.
Sourcepub async fn create(self) -> Result<InterestQueue<T, C>>
pub async fn create(self) -> Result<InterestQueue<T, C>>
Create the interest queue.
Auto Trait Implementations§
impl<T, C> Freeze for InterestQueueBuilder<T, C>
impl<T, C> !RefUnwindSafe for InterestQueueBuilder<T, C>
impl<T, C> Send for InterestQueueBuilder<T, C>where
T: Send,
impl<T, C> Sync for InterestQueueBuilder<T, C>where
T: Sync,
impl<T, C> Unpin for InterestQueueBuilder<T, C>
impl<T, C> !UnwindSafe for InterestQueueBuilder<T, C>
Blanket Implementations§
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