pub struct ProtectContext {
pub self_pid: Option<u32>,
pub self_uid: Option<u32>,
pub ancestor_pids: Vec<u32>,
pub protected_names: Vec<String>,
pub caller_group: Option<String>,
}Expand description
Context for protection decisions.
Fields§
§self_pid: Option<u32>§self_uid: Option<u32>§ancestor_pids: Vec<u32>Ancestors of oomtop (its shell, terminal, and for MCP the hosting agent), never offered.
protected_names: Vec<String>Extra names from config protected.names.
caller_group: Option<String>Group id of the agent session hosting an MCP call (excluded from its reclaim candidates).
Trait Implementations§
Source§impl Clone for ProtectContext
impl Clone for ProtectContext
Source§impl Debug for ProtectContext
impl Debug for ProtectContext
Source§impl Default for ProtectContext
impl Default for ProtectContext
Source§impl<'de> Deserialize<'de> for ProtectContextwhere
ProtectContext: Default,
impl<'de> Deserialize<'de> for ProtectContextwhere
ProtectContext: Default,
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 ProtectContext
Source§impl PartialEq for ProtectContext
impl PartialEq for ProtectContext
Source§impl Serialize for ProtectContext
impl Serialize for ProtectContext
impl StructuralPartialEq for ProtectContext
Auto Trait Implementations§
impl Forget for ProtectContext
impl Freeze for ProtectContextwhere
*const u8 is !null: Freeze,
PhantomData<u32>: Freeze,
PhantomData<String>: Freeze,
PhantomData<u8>: Freeze,
impl Move for ProtectContext
impl RefUnwindSafe for ProtectContext
impl Send for ProtectContextwhere
RawVecInner: Send,
impl Sync for ProtectContextwhere
RawVecInner: Sync,
impl Unpin for ProtectContext
impl UnsafeUnpin for ProtectContextwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u32>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for ProtectContextwhere
RawVecInner: UnwindSafe,
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