setxattr

Function setxattr 

Source
pub fn setxattr<P, S, B>(path: P, name: S, value: B, flags: Flags) -> Result<()>
where P: AsRef<Path>, S: AsRef<OsStr>, B: AsRef<[u8]>,
Expand description

Sets the value of the extended attribute identified by name and associated with the given path in the filesystem. If path is a symbolic link, it will be dereferenced.

For more information, see setxattr(2)