Trait audio_streams::async_api::WriteAsync
source · pub trait WriteAsync {
// Required method
fn write_from_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 write_from_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 write_from_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,
Write asynchronously from the provided Vec.
The ownership of the Vec is returned after the operation completes, along with the number of bytes written.