pub struct TeardownReport {
pub block_id: String,
pub agent: String,
pub released_claims: usize,
pub stopped_shells: usize,
pub crons_targeting: Vec<String>,
pub stopped_background: usize,
pub stop_error: Option<String>,
pub stopped_container: Option<String>,
pub containers_left: Vec<String>,
pub survivors: Vec<ProcessEntry>,
pub before: AgentResources,
}Expand description
What a teardown did, for the consumer’s summary and the audit.
Fields§
§block_id: String§agent: StringThe agent’s id, else its block id.
released_claims: usize§stopped_shells: usize§crons_targeting: Vec<String>Cron jobs still targeting the agent (kept).
stopped_background: usizeBackground tasks stopped explicitly (Stop with stop_background).
stop_error: Option<String>Stop only: the CLI stop failed. Nothing else was touched (claims and
background tasks stay), and stop returns this as its error.
stopped_container: Option<String>The container agent’s container that was stopped, if any.
containers_left: Vec<String>Running Docker Compose containers from the agent’s working directory,
left running and reported (compose_containers_left).
survivors: Vec<ProcessEntry>Processes from before still running after the teardown and one more
forced kill each (spec §6.2 step 8). Empty is the goal.
before: AgentResourcesWhat it owned when the teardown began.
Trait Implementations§
Source§impl Clone for TeardownReport
impl Clone for TeardownReport
Source§fn clone(&self) -> TeardownReport
fn clone(&self) -> TeardownReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TeardownReport
impl Debug for TeardownReport
Source§impl Default for TeardownReport
impl Default for TeardownReport
Source§fn default() -> TeardownReport
fn default() -> TeardownReport
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TeardownReport
impl RefUnwindSafe for TeardownReport
impl Send for TeardownReport
impl Sync for TeardownReport
impl Unpin for TeardownReport
impl UnsafeUnpin for TeardownReport
impl UnwindSafe for TeardownReport
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.