Struct linux_keyutils::Metadata
source · pub struct Metadata { /* private fields */ }
Expand description
Information about the given node/entry. Returned by Key::metadata or KeyRing::metadata
Implementations§
source§impl Metadata
impl Metadata
sourcepub fn get_perms(&self) -> KeyPermissions
pub fn get_perms(&self) -> KeyPermissions
The current permissions of this entry
sourcepub fn get_description(&self) -> &str
pub fn get_description(&self) -> &str
The description for this entry
Trait Implementations§
source§impl FromStr for Metadata
impl FromStr for Metadata
source§fn from_str(s: &str) -> Result<Self, Self::Err>
fn from_str(s: &str) -> Result<Self, Self::Err>
The returned string contains the following information about the key:
type;uid;gid;perm;description
And is then parsed into a valid Metadata struct.
In the above, type and description are strings, uid and gid are decimal strings, and perm is a hexadecimal permissions mask.