pub struct KillResponse {
pub lease: Lease,
pub terminated: Vec<KilledProcess>,
pub failed: Vec<UnkilledProcess>,
pub spared: Vec<UnkilledProcess>,
pub untouched_reason: Option<String>,
}Expand description
Response of POST /leases/{id}/kill.
Fields§
§lease: LeaseThe lease, ended with cause killed.
terminated: Vec<KilledProcess>Processes terminated, root first.
failed: Vec<UnkilledProcess>Processes that could not be terminated, with what the OS said.
spared: Vec<UnkilledProcess>Processes in the tree left running on purpose, each with everything below it.
untouched_reason: Option<String>Why no process was terminated: the lease had no bound process tree, or its command had
already ended. The lease ended anyway. None when the bound tree was killed.
Trait Implementations§
Source§impl Clone for KillResponse
impl Clone for KillResponse
Source§impl Debug for KillResponse
impl Debug for KillResponse
Source§impl<'de> Deserialize<'de> for KillResponse
impl<'de> Deserialize<'de> for KillResponse
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 KillResponse
impl PartialEq for KillResponse
Source§impl Serialize for KillResponse
impl Serialize for KillResponse
impl StructuralPartialEq for KillResponse
Auto Trait Implementations§
impl Forget for KillResponse
impl Freeze for KillResponse
impl Move for KillResponse
impl RefUnwindSafe for KillResponse
impl Send for KillResponse
impl Sync for KillResponse
impl Unpin for KillResponse
impl UnsafeUnpin for KillResponse
impl UnwindSafe for KillResponse
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