pub(crate) fn with_config(cfg: Settings, rpm_ostree_addr: Addr<RpmOstreeClient>) -> Self {
        let steady_secs = cfg.steady_interval_secs.get();
        Self {
            state: Rc::new(RwLock::new(UpdateAgentState::default())),
            state_changed: Rc::new(Cell::new(chrono::Utc::now())),
            info: UpdateAgentInfo {
                allow_downgrade: cfg.allow_downgrade,
                cincinnati: cfg.cincinnati,
                enabled: cfg.enabled,
                identity: cfg.identity,
                rpm_ostree_actor: rpm_ostree_addr,
                steady_interval: Duration::from_secs(steady_secs),
                strategy: cfg.strategy,
            },
        }
    }
/// Build an update agent with the given config.
Build an update agent with the given config.
Build an update agent with the given config .
pub(crate) fn with_config(cfg: Settings, rpm_ostree_addr: Addr<RpmOstreeClient>) -> Self {
        let steady_secs = cfg.steady_interval_secs.get();
        Self {
            state: Rc::new(RwLock::new(UpdateAgentState::default())),
            state_changed: Rc::new(Cell::new(chrono::Utc::now())),
            info: UpdateAgentInfo {
                allow_downgrade: cfg.allow_downgrade,
                cincinnati: cfg.cincinnati,
                enabled: cfg.enabled,
                identity: cfg.identity,
                rpm_ostree_actor: rpm_ostree_addr,
                steady_interval: Duration::from_secs(steady_secs),
                strategy: cfg.strategy,
            },
        }
    }
pub ( crate ) fn with_config ( cfg : Settings , rpm_ostree_addr : Addr < RpmOstreeClient > ) -> Self { let steady_secs = cfg . steady_interval_secs . get ( ) ; Self { state : Rc :: new ( RwLock :: new ( UpdateAgentState :: default ( ) ) ) , state_changed : Rc :: new ( Cell :: new ( chrono :: Utc :: now ( ) ) ) , info : UpdateAgentInfo { allow_downgrade : cfg . allow_downgrade , cincinnati : cfg . cincinnati , enabled : cfg . enabled , identity : cfg . identity , rpm_ostree_actor : rpm_ostree_addr , steady_interval : Duration :: from_secs ( steady_secs ) , strategy : cfg . strategy , } , } }
Build an update agent with the given config.
Build an update agent with the given config .
cfg
Settings
rpm_ostree_addr
Addr<RpmOstreeClient>