pub trait XattrStorage {
// Required methods
fn get_xattr(&self, name: &FsStr) -> Result<FsString, Errno>;
fn set_xattr(
&self,
name: &FsStr,
value: &FsStr,
op: XattrOp,
) -> Result<(), Errno>;
fn remove_xattr(&self, name: &FsStr) -> Result<(), Errno>;
fn list_xattrs(&self) -> Result<Vec<FsString>, Errno>;
}Expand description
Trait that objects can implement if they need to handle extended attribute storage. Allows
delegating extended attribute operations in FsNodeOps to another object.
See fs_node_impl_xattr_delegate for usage details.
Required Methods§
Sourcefn get_xattr(&self, name: &FsStr) -> Result<FsString, Errno>
fn get_xattr(&self, name: &FsStr) -> Result<FsString, Errno>
Delegate for FsNodeOps::get_xattr.
Sourcefn set_xattr(
&self,
name: &FsStr,
value: &FsStr,
op: XattrOp,
) -> Result<(), Errno>
fn set_xattr( &self, name: &FsStr, value: &FsStr, op: XattrOp, ) -> Result<(), Errno>
Delegate for FsNodeOps::set_xattr.
Sourcefn remove_xattr(&self, name: &FsStr) -> Result<(), Errno>
fn remove_xattr(&self, name: &FsStr) -> Result<(), Errno>
Delegate for FsNodeOps::remove_xattr.
Sourcefn list_xattrs(&self) -> Result<Vec<FsString>, Errno>
fn list_xattrs(&self) -> Result<Vec<FsString>, Errno>
Delegate for FsNodeOps::list_xattrs.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".