pub struct BoxCapabilities {
pub net_command: bool,
pub net_command_roles: Vec<String>,
pub ble_command: bool,
pub wifi_command: bool,
pub blufi_command: bool,
pub custom_devices: bool,
pub binaries: bool,
pub safety_limits: bool,
}Expand description
Capabilities advertised by the box in GET /status.
Fields§
§net_command: boolWhether the box serves POST /net/command (Tier-1 nets over HTTP).
When false the box software predates this crate’s contract.
net_command_roles: Vec<String>Roles served by POST /net/command on this box. Empty on box images
that predate role advertising (which still serve the original Tier-1
roles when net_command is true).
ble_command: boolWhether the box serves POST /ble/command.
wifi_command: boolWhether the box serves POST /wifi/command.
blufi_command: boolWhether the box serves POST /blufi/command.
custom_devices: boolWhether the box serves the /custom-devices/* endpoints (the
lager nets assign backend). Not used by this crate; surfaced for
callers probing box features.
binaries: boolWhether the box serves /binaries/* and /download-file. Not used
by this crate; surfaced for callers probing box features.
safety_limits: boolWhether the box serves PUT /nets/<name>/safety-limits (box >=
0.35.0). The flag mirrors route registration rather than the version
string, so a box whose nets handler failed to import reads false
here even if its version says otherwise.
Trait Implementations§
Source§impl Clone for BoxCapabilities
impl Clone for BoxCapabilities
Source§fn clone(&self) -> BoxCapabilities
fn clone(&self) -> BoxCapabilities
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more