Skip to main content

set

Function set 

Source
pub async fn set(
    task_manager: &Manager,
    users_manager: &Manager,
    virtual_file_system: &VirtualFileSystem,
    task: TaskIdentifier,
    setting: &Setting,
) -> Result<(), IoErrorKind>
Expand description

Store a new setting and publish it.

The user of task must be root or a member of the administrator group; otherwise the call fails with PermissionDenied. The file is written with the identity of the root task, so it stays owned by root. The new TZ string is published only once the file is in place. See the crate documentation for which tasks see the change.