Skip to main content

read

Function read 

Source
pub async fn read(
    virtual_file_system: &VirtualFileSystem,
    task: TaskIdentifier,
) -> Result<Setting, IoErrorKind>
Expand description

Read the stored setting, without a fallback.

Fails with NotFound when there is no file, PermissionDenied when the file is not a regular file written by root only, FileTooLarge when it is larger than MAXIMUM_CONFIGURATION_SIZE, and InvalidData when its contents are not a valid setting.