Skip to main content

SupervisorRescanResult

Struct SupervisorRescanResult 

Source
pub struct SupervisorRescanResult {
    pub added: Vec<String>,
    pub removed: Vec<String>,
    pub changed_pending_reload: Vec<String>,
    pub enabled_changes: Vec<String>,
    pub unchanged: u32,
    pub preview: bool,
    pub restart_required: Vec<String>,
    pub capability_warnings: Vec<String>,
}

Fields§

§added: Vec<String>§removed: Vec<String>§changed_pending_reload: Vec<String>§enabled_changes: Vec<String>

Modules whose enabled flag differs between config and running state.

Rescan calls set_enabled for these, so omitting them made the preview describe two of the three mutation classes it performs. A module changing only its enabled flag landed in no bucket at all – not added, removed or changed, and deliberately not counted as unchanged either – so the sole evidence was that the buckets no longer summed to the configured module count. A preview is consulted precisely when someone is being careful, which is the worst place to under-report.

Empty is skipped so consumers written against the older shape keep parsing.

§unchanged: u32§preview: bool

True when this reconciliation was computed but NOT applied.

Carried on the result rather than left to the caller’s memory of what it asked for. A preview and an execution are otherwise byte-identical, so a reader who meets this output later – in a log, a transcript, a pasted snippet – cannot tell which one happened. Absent when false, so existing consumers see the shape they already parse.

§restart_required: Vec<String>

Config sections that changed but which rescan CANNOT apply, so the operator learns a daemon restart is required from the command they just ran rather than from the journal.

The daemon has always detected this and logged a warning. A warning in a log is addressed to whoever is reading the log, and the person who just edited the config is by construction looking at the CLI instead: reported by an outside contributor after a module crash-looped through four respawns because a new top-level storage section was silently not applied, diagnosable only by journal archaeology.

Names the SECTIONS rather than a boolean, because “something else changed” sends the operator back to diffing their own file – which is the work the message exists to save.

Empty is skipped, so consumers written against the older shape keep parsing.

§capability_warnings: Vec<String>

Required capabilities that a dry-run’s resulting module set would leave unprovided. Rows are human-readable because the preview is an operator explanation, not a second manifest schema.

Trait Implementations§

Source§

impl Clone for SupervisorRescanResult

Source§

fn clone(&self) -> SupervisorRescanResult

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SupervisorRescanResult

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for SupervisorRescanResult

Source§

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 Eq for SupervisorRescanResult

Source§

impl PartialEq for SupervisorRescanResult

Source§

fn eq(&self, other: &SupervisorRescanResult) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for SupervisorRescanResult

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for SupervisorRescanResult

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.