pub struct JournalEntry {
pub cgroup: String,
pub inode: u64,
pub unit: Option<String>,
pub action: JournalAction,
pub prev_high: Option<String>,
pub our_high: Option<String>,
}Expand description
One restore entry: identifies a cgroup and the action taken, with guards for safe restoration.
Fields§
§cgroup: StringRelative cgroupfs path, e.g., “/user.slice/user-1000.slice/user@1000.service/app.slice/app-firefox-12.scope”
inode: u64Directory inode at time of action (used to detect cgroup recreation).
unit: Option<String>Systemd unit name if applicable.
action: JournalActionAction taken: Freeze or Cap.
prev_high: Option<String>Cap only: memory.high value before we modified it.
our_high: Option<String>Cap only: memory.high value we wrote.
Trait Implementations§
Source§impl Clone for JournalEntry
impl Clone for JournalEntry
Source§impl Debug for JournalEntry
impl Debug for JournalEntry
Source§impl<'de> Deserialize<'de> for JournalEntry
impl<'de> Deserialize<'de> for JournalEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for JournalEntry
Source§impl PartialEq for JournalEntry
impl PartialEq for JournalEntry
Source§impl Serialize for JournalEntry
impl Serialize for JournalEntry
impl StructuralPartialEq for JournalEntry
Auto Trait Implementations§
impl Freeze for JournalEntry
impl RefUnwindSafe for JournalEntry
impl Send for JournalEntry
impl Sync for JournalEntry
impl Unpin for JournalEntry
impl UnsafeUnpin for JournalEntry
impl UnwindSafe for JournalEntry
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.