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
sourceimpl 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
sourceimpl FromStr for Metadata
impl FromStr for Metadata
sourcefn 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.
Auto Trait Implementations
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more