Skip to main content

XattrStorage

Trait XattrStorage 

Source
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§

Source

fn get_xattr(&self, name: &FsStr) -> Result<FsString, Errno>

Delegate for FsNodeOps::get_xattr.

Source

fn set_xattr( &self, name: &FsStr, value: &FsStr, op: XattrOp, ) -> Result<(), Errno>

Delegate for FsNodeOps::set_xattr.

Source

fn remove_xattr(&self, name: &FsStr) -> Result<(), Errno>

Source

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".

Implementors§