pub struct OpenFileEntry {
pub descriptor: i32,
pub kind: OpenFileKind,
pub path: MetricState<Box<str>>,
}Expand description
One open file descriptor of a process.
Fields§
§descriptor: i32The descriptor number, as the process itself would use it.
kind: OpenFileKindWhat the descriptor refers to.
path: MetricState<Box<str>>Where it points in the filesystem.
Never an empty string (§4). MetricState::Unsupported when
OpenFileKind::has_path is false, or when the kernel resolved the
descriptor but has no name for the object — an unlinked file has no path to
report and never will, so it is not a temporary failure either.
MetricState::PermissionDenied when the OS refused the per-descriptor
read, which is the common case for another user’s process.
Serialized as its state only, never as its text: see the private
redact_descriptor_path beside this type, and §15.2.
Trait Implementations§
Source§impl Clone for OpenFileEntry
impl Clone for OpenFileEntry
Source§fn clone(&self) -> OpenFileEntry
fn clone(&self) -> OpenFileEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OpenFileEntry
impl Debug for OpenFileEntry
impl Eq for OpenFileEntry
Source§impl PartialEq for OpenFileEntry
impl PartialEq for OpenFileEntry
impl StructuralPartialEq for OpenFileEntry
Auto Trait Implementations§
impl Freeze for OpenFileEntry
impl RefUnwindSafe for OpenFileEntry
impl Send for OpenFileEntry
impl Sync for OpenFileEntry
impl Unpin for OpenFileEntry
impl UnsafeUnpin for OpenFileEntry
impl UnwindSafe for OpenFileEntry
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