Skip to main content

read_string_bounded

Function read_string_bounded 

Source
pub async fn read_string_bounded(
    path: impl AsRef<Path>,
    max_bytes: usize,
) -> Result<String, FsError>
Expand description

Read UTF-8 text only when its complete contents fit under max_bytes.