pub struct Effector<'a> { /* private fields */ }Expand description
Implementations§
Source§impl<'a> Effector<'a>
impl<'a> Effector<'a>
pub fn new( manager: &'a CgroupManager, journal: &'a Journal, systemd: Option<&'a SystemdUser>, ) -> Self
Sourcepub fn apply(&self, action: &Action) -> Result<Applied>
pub fn apply(&self, action: &Action) -> Result<Applied>
Apply a single action. Best-effort: returns Err only so the caller can
log it. On success, Applied::cap_bytes holds the memory.high a
Cap wrote.
Sourcepub fn sweep_leftovers(&self) -> Result<()>
pub fn sweep_leftovers(&self) -> Result<()>
Startup recovery: legacy guard-<pid> sweep (kept for one release as
an upgrade path from pre-act-in-place rlm), then replay every live
journal entry.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Effector<'a>
impl<'a> !UnwindSafe for Effector<'a>
impl<'a> Freeze for Effector<'a>
impl<'a> Send for Effector<'a>
impl<'a> Sync for Effector<'a>
impl<'a> Unpin for Effector<'a>
impl<'a> UnsafeUnpin for Effector<'a>
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