pub struct DefinitionDrift {
pub path: PathBuf,
pub installed_by_version: String,
pub rendered: String,
pub start_mode: StartMode,
}Expand description
An installed service definition that differs from what this build renders for the same recorded installation.
§Why this exists
An upgrade replaces the binary a registration runs and nothing else. A
systemd unit written by 0.4.7 still carried LoadCredential=, which hands
the daemon a copy of the credential frozen at service start, and lacked
write access to the credential store. Every release after the fix kept
running under that unit: the daemon could neither renew the token nor see
one renewed by anybody else, and stopped starting runners the moment the
frozen access token expired.
Fields§
§path: PathBufThe definition file on disk.
installed_by_version: StringThe build that wrote it, as its install record says.
rendered: StringWhat this build renders in its place.
start_mode: StartModeThe start mode it was installed for.
Trait Implementations§
Source§impl Clone for DefinitionDrift
impl Clone for DefinitionDrift
Source§impl Debug for DefinitionDrift
impl Debug for DefinitionDrift
impl Eq for DefinitionDrift
Source§impl PartialEq for DefinitionDrift
impl PartialEq for DefinitionDrift
impl StructuralPartialEq for DefinitionDrift
Auto Trait Implementations§
impl Freeze for DefinitionDrift
impl RefUnwindSafe for DefinitionDrift
impl Send for DefinitionDrift
impl Sync for DefinitionDrift
impl Unpin for DefinitionDrift
impl UnsafeUnpin for DefinitionDrift
impl UnwindSafe for DefinitionDrift
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