Method lrs::file::File::list_attr_buf

Returns an iterator over the attributes in this file.

Syntax

impl File {
    fn list_attr_buf(&self, buf: &'a mut [u8]) -> Result<ListAttrIter<'a>, Errno>
}

Arguments

NameDescription
buf

The buffer in which the attributes will be placed.

Remarks

Note that the buffer must be large enough to hold all attributes. The required size can be queried with the list_attr_size function. It's an error to pass a buffer with length 0.

See also

list_attr_size flistxattr(2)