[−][src]Function exacl::to_writer
pub fn to_writer<W: Write>(mut writer: W, entries: &[AclEntry]) -> Result<()>
Write ACL entries to text.
Each ACL entry is printed on a separate line. The five fields are separated by colons:
<allow>:<flags>:<kind>:<name>:<perms>
<allow> - one of "allow" or "deny"
<flags> - comma-separated list of flags
<kind> - one of "user", "group", "other", "mask", "unknown"
<name> - user/group name (or decimal id if not known)
<perms> - comma-separated list of permissions
Each record, including the last, is terminated by a final newline.
Sample Output
allow::group:admin:read,write
Errors
Returns an io::Error
on failure.