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?;

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.