pub struct OtaHeader {
pub header_version: u16,
pub header_length: u16,
pub field_control: u16,
pub manufacturer: u16,
pub image_type: u16,
pub file_version: u32,
pub stack_version: u16,
pub header_string: String,
pub total_size: u32,
pub destination: Option<Ieee>,
pub hardware: Option<(u16, u16)>,
}Expand description
An OTA file header.
Fields§
§header_version: u16Header version (0x0100).
header_length: u16Header length.
field_control: u16Field control: which optional fields follow.
manufacturer: u16Manufacturer code.
image_type: u16Image type.
file_version: u32File version.
stack_version: u16Zigbee stack version.
header_string: StringHeader string (free text).
total_size: u32The whole image’s size, header included.
destination: Option<Ieee>Only for this device, if set.
hardware: Option<(u16, u16)>Hardware versions it fits, if set.
Implementations§
Source§impl OtaHeader
impl OtaHeader
Trait Implementations§
impl Eq for OtaHeader
impl StructuralPartialEq for OtaHeader
Auto Trait Implementations§
impl Freeze for OtaHeader
impl RefUnwindSafe for OtaHeader
impl Send for OtaHeader
impl Sync for OtaHeader
impl Unpin for OtaHeader
impl UnsafeUnpin for OtaHeader
impl UnwindSafe for OtaHeader
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