pub struct DisruptorBuilder<T, F> { /* private fields */ }Implementations§
Source§impl<T, F> DisruptorBuilder<T, F>where
F: Fn() -> T,
impl<T, F> DisruptorBuilder<T, F>where
F: Fn() -> T,
Sourcepub fn buffer_size(self, size: usize) -> Self
pub fn buffer_size(self, size: usize) -> Self
Sets the buffer size.
Sourcepub fn wait_strategy<W: WaitStrategy + 'static>(self, strategy: W) -> Self
pub fn wait_strategy<W: WaitStrategy + 'static>(self, strategy: W) -> Self
Sets the wait strategy.
Sourcepub fn single_producer(self) -> Self
pub fn single_producer(self) -> Self
Sets the producer type to Single.
Sourcepub fn multi_producer(self) -> Self
pub fn multi_producer(self) -> Self
Sets the producer type to Multi.
Auto Trait Implementations§
impl<T, F> Freeze for DisruptorBuilder<T, F>where
F: Freeze,
impl<T, F> !RefUnwindSafe for DisruptorBuilder<T, F>
impl<T, F> Send for DisruptorBuilder<T, F>
impl<T, F> Sync for DisruptorBuilder<T, F>
impl<T, F> Unpin for DisruptorBuilder<T, F>
impl<T, F> UnsafeUnpin for DisruptorBuilder<T, F>where
F: UnsafeUnpin,
impl<T, F> !UnwindSafe for DisruptorBuilder<T, F>
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