pub struct HostConfig {
pub store_path: Option<PathBuf>,
pub backup_path: Option<PathBuf>,
pub join: JoinPolicy,
pub configure_reporting: bool,
pub request_timeout: Duration,
pub request_attempts: u32,
pub backup_interval: Duration,
pub legacy_grace: Duration,
pub max_in_flight: usize,
pub ota_dir: Option<PathBuf>,
pub ota_query_timeout: Duration,
}Expand description
Host settings.
Fields§
§store_path: Option<PathBuf>Where the device store lives; None keeps devices in memory only.
backup_path: Option<PathBuf>Where the latest backup is written; None writes none.
join: JoinPolicyTrust center join policy.
configure_reporting: boolBind and configure reporting for standard clusters at interview.
request_timeout: DurationHow long to wait for each device response.
request_attempts: u32Attempts per interview request.
backup_interval: DurationPeriodic backups (also taken after joins and leaves).
legacy_grace: DurationHow long a new device has to obtain a unique link key before it is removed, when legacy devices are not allowed.
max_in_flight: usizeRequests in flight at once, so the NCP’s buffers are never exhausted.
ota_dir: Option<PathBuf>A directory of OTA upgrade images; None serves none.
ota_query_timeout: DurationHow long to wait for a device’s OTA query after notifying it.
Trait Implementations§
Source§impl Clone for HostConfig
impl Clone for HostConfig
Source§impl Debug for HostConfig
impl Debug for HostConfig
Auto Trait Implementations§
impl Freeze for HostConfig
impl RefUnwindSafe for HostConfig
impl Send for HostConfig
impl Sync for HostConfig
impl Unpin for HostConfig
impl UnsafeUnpin for HostConfig
impl UnwindSafe for HostConfig
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