Struct noodles_cram::crai::AsyncReader[][src]

pub struct AsyncReader<R> { /* fields omitted */ }
Expand description

An async CRAM index reader.

Implementations

Creates an async CRAM index reader.

Examples
use noodles_cram::crai;
let data = [];
let reader = crai::AsyncReader::new(&data[..]);

Reads a CRAM index.

The position of the stream is expected to be at the start.

Examples
use noodles_cram::crai;
use tokio::fs::File;

let mut reader = File::open("sample.cram.crai")
    .await
    .map(crai::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.

Should always be Self

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.