Skip to main content

mount_peripheral_with_permissions

Function mount_peripheral_with_permissions 

Source
pub async fn mount_peripheral_with_permissions<H: PeripheralHandle + 'static>(
    virtual_file_system: &VirtualFileSystem,
    task: TaskIdentifier,
    path: impl AsRef<Path>,
    handle: H,
    permissions: Permissions,
) -> Result<()>
Expand description

Mounts handle as a character device at path with explicit permissions, for device classes whose writes are reserved to the mounting user (for example the real-time clock with [Permissions::PRIVILEGED_DEVICE]).