[][src]Struct rust_htslib::tpool::ThreadPool

pub struct ThreadPool { /* fields omitted */ }

An HTSlib thread pool. Create a thread pool and use set_thread_pool() methods to share a thread pool across multiple BAM readers & writers. The Rust wrapper holds the htslib thread pool behind a Rc, and a Rc reference to the thread pool is held by each reader / writer so you don't need to explicitly manage the lifetime of the ThreadPool.

Implementations

impl ThreadPool[src]

pub fn new(n_threads: u32) -> Result<ThreadPool>[src]

Create a new thread pool with n_threads threads.

Trait Implementations

impl Clone for ThreadPool[src]

impl Debug for ThreadPool[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.