pub struct HostPathMetadata { /* private fields */ }Expand description
Inspected metadata or equivalent evidence supplied by a host probe.
Implementations§
Source§impl HostPathMetadata
impl HostPathMetadata
Sourcepub const fn new(kind: HostPathKind, owner_uid: u32, mode: u32) -> Self
pub const fn new(kind: HostPathKind, owner_uid: u32, mode: u32) -> Self
Constructs typed host evidence, without granting any resource access.
Sourcepub fn inspect(path: &Path) -> Result<Self>
pub fn inspect(path: &Path) -> Result<Self>
Reads metadata from the source namespace, following symlinks like bind mounts.
Sourcepub const fn kind(self) -> HostPathKind
pub const fn kind(self) -> HostPathKind
Returns the inspected object shape.
Sourcepub fn is_owned_socket(self, current_uid: u32) -> bool
pub fn is_owned_socket(self, current_uid: u32) -> bool
Checks the shared native-agent endpoint ownership requirement.
Trait Implementations§
Source§impl Clone for HostPathMetadata
impl Clone for HostPathMetadata
impl Copy for HostPathMetadata
Source§impl Debug for HostPathMetadata
impl Debug for HostPathMetadata
impl Eq for HostPathMetadata
Source§impl PartialEq for HostPathMetadata
impl PartialEq for HostPathMetadata
impl StructuralPartialEq for HostPathMetadata
Auto Trait Implementations§
impl Forget for HostPathMetadata
impl Freeze for HostPathMetadata
impl Move for HostPathMetadata
impl RefUnwindSafe for HostPathMetadata
impl Send for HostPathMetadata
impl Sync for HostPathMetadata
impl Unpin for HostPathMetadata
impl UnsafeUnpin for HostPathMetadata
impl UnwindSafe for HostPathMetadata
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.