XattrStorage

Trait XattrStorage 

Source
pub trait XattrStorage {
    // Required methods
    fn get_xattr(
        &self,
        locked: &mut Locked<FileOpsCore>,
        name: &FsStr,
    ) -> Result<FsString, Errno>;
    fn set_xattr(
        &self,
        locked: &mut Locked<FileOpsCore>,
        name: &FsStr,
        value: &FsStr,
        op: XattrOp,
    ) -> Result<(), Errno>;
    fn remove_xattr(
        &self,
        locked: &mut Locked<FileOpsCore>,
        name: &FsStr,
    ) -> Result<(), Errno>;
    fn list_xattrs(
        &self,
        locked: &mut Locked<FileOpsCore>,
    ) -> 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, locked: &mut Locked<FileOpsCore>, name: &FsStr, ) -> Result<FsString, Errno>

Delegate for FsNodeOps::get_xattr.

Source

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

Delegate for FsNodeOps::set_xattr.

Source

fn remove_xattr( &self, locked: &mut Locked<FileOpsCore>, name: &FsStr, ) -> Result<(), Errno>

Source

fn list_xattrs( &self, locked: &mut Locked<FileOpsCore>, ) -> Result<Vec<FsString>, Errno>

Delegate for FsNodeOps::list_xattrs.

Implementations on Foreign Types§

Source§

impl XattrStorage for Zxio

Source§

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

Source§

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

Source§

fn remove_xattr( &self, _locked: &mut Locked<FileOpsCore>, name: &FsStr, ) -> Result<(), Errno>

Source§

fn list_xattrs( &self, _locked: &mut Locked<FileOpsCore>, ) -> Result<Vec<FsString>, Errno>

Implementors§