pub struct Builder<S> { /* private fields */ }Expand description
Builds a queue over a Store.
Implementations§
Source§impl<S: Store> Builder<S>
impl<S: Store> Builder<S>
Sourcepub fn new(store: S) -> Self
pub fn new(store: S) -> Self
Start a builder over store (capacity 1024, Durability::Sync).
Sourcepub fn capacity(self, capacity: usize) -> Self
pub fn capacity(self, capacity: usize) -> Self
Set the maximum number of unacked items before push blocks. Must be > 0.
Sourcepub fn durability(self, durability: Durability) -> Self
pub fn durability(self, durability: Durability) -> Self
Set the durability policy.
Source§impl<S: Store> Builder<S>
impl<S: Store> Builder<S>
Auto Trait Implementations§
impl<S> Freeze for Builder<S>where
S: Freeze,
impl<S> RefUnwindSafe for Builder<S>where
S: RefUnwindSafe,
impl<S> Send for Builder<S>where
S: Send,
impl<S> Sync for Builder<S>where
S: Sync,
impl<S> Unpin for Builder<S>where
S: Unpin,
impl<S> UnsafeUnpin for Builder<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for Builder<S>where
S: UnwindSafe,
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