pub struct LeaseIsolation {
pub kind: IsolationKind,
pub scope: Option<String>,
pub limits: EnforcedLimits,
}Expand description
How a lease’s command is accounted for and stopped.
Fields§
§kind: IsolationKindWhether the command runs in its own cgroup or is followed as a process tree.
scope: Option<String>Name of the systemd scope that holds the command, for example
allot-lease-42.scope; None without a cgroup.
limits: EnforcedLimitsCaps the OS enforces on the command.
Trait Implementations§
Source§impl Clone for LeaseIsolation
impl Clone for LeaseIsolation
Source§impl Debug for LeaseIsolation
impl Debug for LeaseIsolation
Source§impl<'de> Deserialize<'de> for LeaseIsolation
impl<'de> Deserialize<'de> for LeaseIsolation
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
Source§impl PartialEq for LeaseIsolation
impl PartialEq for LeaseIsolation
Source§impl Serialize for LeaseIsolation
impl Serialize for LeaseIsolation
impl StructuralPartialEq for LeaseIsolation
Auto Trait Implementations§
impl Forget for LeaseIsolation
impl Freeze for LeaseIsolation
impl Move for LeaseIsolation
impl RefUnwindSafe for LeaseIsolation
impl Send for LeaseIsolation
impl Sync for LeaseIsolation
impl Unpin for LeaseIsolation
impl UnsafeUnpin for LeaseIsolation
impl UnwindSafe for LeaseIsolation
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