macro_rules! fs_node_impl_xattr_delegate {
($self:ident, $delegate:expr) => { ... };
}Expand description
Implements extended attribute ops for FsNodeOps by delegating to another object which
implements the XattrStorage trait or a similar interface. For example:
struct Xattrs {}
impl XattrStorage for Xattrs {
// implement XattrStorage
}
struct Node {
xattrs: Xattrs
}
impl FsNodeOps for Node {
// Delegate extended attribute ops in FsNodeOps to self.xattrs
fs_node_impl_xattr_delegate!(self, self.xattrs);
// add other FsNodeOps impls here
}