Trait audio_streams::async_api::ReadAsync
source · pub trait ReadAsync {
// Required method
fn read_to_vec<'a, 'async_trait>(
&'a self,
file_offset: Option<u64>,
vec: Vec<u8>
) -> Pin<Box<dyn Future<Output = Result<(usize, Vec<u8>)>> + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait;
}
Required Methods§
sourcefn read_to_vec<'a, 'async_trait>(
&'a self,
file_offset: Option<u64>,
vec: Vec<u8>
) -> Pin<Box<dyn Future<Output = Result<(usize, Vec<u8>)>> + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
fn read_to_vec<'a, 'async_trait>(
&'a self,
file_offset: Option<u64>,
vec: Vec<u8>
) -> Pin<Box<dyn Future<Output = Result<(usize, Vec<u8>)>> + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
Read asynchronously into the provided Vec.
The ownership of the Vec is returned after the operation completes, along with the number of bytes read.