pub struct AppBuilder { /* private fields */ }Expand description
Builder for constructing an App instance.
Implementations§
Source§impl AppBuilder
impl AppBuilder
Sourcepub fn version_file(self, path: impl Into<PathBuf>) -> Self
pub fn version_file(self, path: impl Into<PathBuf>) -> Self
Set the version file path.
Sourcepub fn heartbeat_timeout(self, timeout: Duration) -> Self
pub fn heartbeat_timeout(self, timeout: Duration) -> Self
Set the heartbeat timeout.
Sourcepub fn signal_handlers(self, install: bool) -> Self
pub fn signal_handlers(self, install: bool) -> Self
Whether to install SIGTERM/SIGINT signal handlers.
Sourcepub fn fleet_config(self, path: impl Into<PathBuf>) -> Self
pub fn fleet_config(self, path: impl Into<PathBuf>) -> Self
Enable FleetManager reporting from the given config file. Opt-in: if this is never called, no fleet monitor is created and nothing is sent.
Sourcepub fn fleet_group(self, group: impl Into<String>) -> Self
pub fn fleet_group(self, group: impl Into<String>) -> Self
Optional fleet supergroup (software-specific). The installation site (location/Aufstellungsort) comes from the fleet config file instead.
Sourcepub fn fleet_group_priority(self, priority: i64) -> Self
pub fn fleet_group_priority(self, priority: i64) -> Self
Optional group sort priority.
Sourcepub fn fleet_sort_priority(self, priority: i64) -> Self
pub fn fleet_sort_priority(self, priority: i64) -> Self
Optional machine sort priority within the group.
Sourcepub fn fleet_branding(self, branding: impl Into<String>) -> Self
pub fn fleet_branding(self, branding: impl Into<String>) -> Self
Brand this software runs under (e.g. “uttec”), sent in every heartbeat. Machine-wide identity (serial, name, stream) comes from the fleet config.
Auto Trait Implementations§
impl Freeze for AppBuilder
impl RefUnwindSafe for AppBuilder
impl Send for AppBuilder
impl Sync for AppBuilder
impl Unpin for AppBuilder
impl UnwindSafe for AppBuilder
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