#[repr(C)]pub struct switchtec_fw_image_info {Show 17 fields
pub gen: switchtec_gen,
pub part_id: c_ulong,
pub type_: switchtec_fw_type,
pub version: [c_char; 32],
pub part_addr: usize,
pub part_len: usize,
pub part_body_offset: usize,
pub image_len: usize,
pub image_crc: c_ulong,
pub valid: bool,
pub active: bool,
pub running: bool,
pub read_only: bool,
pub next: *mut switchtec_fw_image_info,
pub metadata: *mut c_void,
pub secure_version: c_ulong,
pub signed_image: bool,
}Expand description
@brief Information about a firmware image or partition
Fields§
§gen: switchtec_gen!< Image generation
part_id: c_ulong!< Image partition ID
type_: switchtec_fw_type!< Image partition type
version: [c_char; 32]!< Firmware/Config version
part_addr: usize!< Address of the partition
part_len: usize!< Length of the partition
part_body_offset: usize!< Partition image body offset
image_len: usize!< Length of the image
image_crc: c_ulong!< CRC checksum of the image
valid: bool§active: bool§running: bool§read_only: bool§next: *mut switchtec_fw_image_info§metadata: *mut c_void§secure_version: c_ulong§signed_image: boolTrait Implementations§
Source§impl Clone for switchtec_fw_image_info
impl Clone for switchtec_fw_image_info
Source§fn clone(&self) -> switchtec_fw_image_info
fn clone(&self) -> switchtec_fw_image_info
Returns a duplicate of the value. Read more
1.0.0 · 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 switchtec_fw_image_info
impl Debug for switchtec_fw_image_info
impl Copy for switchtec_fw_image_info
Auto Trait Implementations§
impl Freeze for switchtec_fw_image_info
impl RefUnwindSafe for switchtec_fw_image_info
impl !Send for switchtec_fw_image_info
impl !Sync for switchtec_fw_image_info
impl Unpin for switchtec_fw_image_info
impl UnwindSafe for switchtec_fw_image_info
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