pub struct Query {
pub vendor_id: VendorId,
pub product_id: u16,
pub software_version: u32,
pub hardware_version: Option<u16>,
pub requestor_can_consent: bool,
pub supports_bdx: bool,
pub supports_https: bool,
}Expand description
Which node is asking, and for what.
Fields§
§vendor_id: VendorIdThe requestor’s VendorID, which §11.20.6.5 requires to match its Basic Information.
product_id: u16Its ProductID.
software_version: u32The version it is running now.
hardware_version: Option<u16>Its HardwareVersion, when it told us.
requestor_can_consent: boolWhether the requestor can ask a person before applying an update.
§11.20.3.4: a provider that requires consent may only set UserConsentNeeded when the
requestor said it can obtain it — otherwise the update would stall for ever waiting for
a confirmation nothing can give.
supports_bdx: boolWhether the requestor can take a synchronous BDX transfer.
§11.20.6.5: “BDX Synchronous transfer mode SHALL always be supported by an OTA Provider”, so a requestor that does not offer it is offering something else entirely.
supports_https: boolWhether it offered HTTPS.
Trait Implementations§
impl Copy for Query
impl Eq for Query
impl StructuralPartialEq for Query
Auto Trait Implementations§
impl Forget for Query
impl Freeze for Query
impl Move for Query
impl RefUnwindSafe for Query
impl Send for Query
impl Sync for Query
impl Unpin for Query
impl UnsafeUnpin for Query
impl UnwindSafe for Query
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