Function gloo_file::futures::read_as_array_buffer
source · [−]pub fn read_as_array_buffer(
blob: &Blob
) -> impl Future<Output = Result<ArrayBuffer, FileReadError>>
Expand description
Returns the contents of blob
as an array buffer.
Equivalent to
async fn read_as_array_buffer(blob: &Blob) -> Result<js_sys::ArrayBuffer, FileReadError>
but without borrowing the Blob
fore the lifetime of the future.