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,
}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.
Trait Implementations§
Source§impl Clone for BoxCapabilities
impl Clone for BoxCapabilities
Source§fn clone(&self) -> BoxCapabilities
fn clone(&self) -> BoxCapabilities
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BoxCapabilities
impl Debug for BoxCapabilities
Source§impl Default for BoxCapabilities
impl Default for BoxCapabilities
Source§fn default() -> BoxCapabilities
fn default() -> BoxCapabilities
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BoxCapabilities
impl<'de> Deserialize<'de> for BoxCapabilities
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BoxCapabilities
impl RefUnwindSafe for BoxCapabilities
impl Send for BoxCapabilities
impl Sync for BoxCapabilities
impl Unpin for BoxCapabilities
impl UnsafeUnpin for BoxCapabilities
impl UnwindSafe for BoxCapabilities
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