Function gloo::file::futures::read_as_text

source ·
pub fn read_as_text(
    blob: &Blob
) -> impl Future<Output = Result<String, FileReadError>>
Available on crate features file and futures only.
Expand description

Returns the contents of blob as a text string.

Equivalent to async fn read_as_text(blob: &Blob) -> Result<String, FileReadError> but without borrowing the Blob fore the lifetime of the future.