Struct noodles_tabix::AsyncReader [−][src]
pub struct AsyncReader<R> where
R: AsyncRead, { /* fields omitted */ }
Expand description
An async tabix reader.
Implementations
Creates an async tabix reader.
Examples
use noodles_tabix as tabix;
let data = [];
let reader = tabix::AsyncReader::new(&data[..]);
Reads the tabix index.
The position of the stream is expected to be at the beginning.
Examples
use noodles_tabix as tabix;
use tokio::fs::File;
let mut reader = File::open("sample.vcf.gz.tbi")
.await
.map(tabix::AsyncReader::new)?;
let index = reader.read_index().await?;