pub struct BashHistoryInfo {
pub pid: u64,
pub comm: String,
pub command: String,
pub timestamp: Option<i64>,
pub index: u64,
}Expand description
A recovered bash command history entry.
Fields§
§pid: u64PID of the bash process.
comm: StringProcess name (usually “bash”).
command: StringThe command text.
timestamp: Option<i64>Unix timestamp when the command was recorded, if available.
index: u64Index of this entry in the history.
Trait Implementations§
Source§impl Clone for BashHistoryInfo
impl Clone for BashHistoryInfo
Source§fn clone(&self) -> BashHistoryInfo
fn clone(&self) -> BashHistoryInfo
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 BashHistoryInfo
impl Debug for BashHistoryInfo
impl Eq for BashHistoryInfo
Source§impl PartialEq for BashHistoryInfo
impl PartialEq for BashHistoryInfo
Source§fn eq(&self, other: &BashHistoryInfo) -> bool
fn eq(&self, other: &BashHistoryInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BashHistoryInfo
Auto Trait Implementations§
impl Freeze for BashHistoryInfo
impl RefUnwindSafe for BashHistoryInfo
impl Send for BashHistoryInfo
impl Sync for BashHistoryInfo
impl Unpin for BashHistoryInfo
impl UnsafeUnpin for BashHistoryInfo
impl UnwindSafe for BashHistoryInfo
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
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.