Struct spdlog::ThreadPoolBuilder
source · pub struct ThreadPoolBuilder { /* private fields */ }
Available on crate feature
multi-thread
only.Expand description
The builder of ThreadPool
.
Implementations§
source§impl ThreadPoolBuilder
impl ThreadPoolBuilder
sourcepub fn capacity(&mut self, capacity: usize) -> &mut Self
pub fn capacity(&mut self, capacity: usize) -> &mut Self
Specifies the capacity of the operation channel.
This parameter is optional, and defaults to 8192 (The value may change in the future).
When a new operation is incoming, but the channel is full, it will be
handled by sink according to the OverflowPolicy
that has been set.
§Panics
Panics if the value is zero.
sourcepub fn build(&self) -> Result<ThreadPool>
pub fn build(&self) -> Result<ThreadPool>
Builds a ThreadPool
.
Auto Trait Implementations§
impl RefUnwindSafe for ThreadPoolBuilder
impl Send for ThreadPoolBuilder
impl Sync for ThreadPoolBuilder
impl Unpin for ThreadPoolBuilder
impl UnwindSafe for ThreadPoolBuilder
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