#[repr(C)]pub struct switchtec_device_info {
pub name: [c_char; 256],
pub desc: [c_char; 256],
pub pci_dev: [c_char; 256],
pub product_id: [c_char; 32],
pub product_rev: [c_char; 8],
pub fw_version: [c_char; 32],
pub path: [c_char; 4096],
}Expand description
@brief Represents a Switchtec device in the switchtec_list() function
Fields§
§name: [c_char; 256]!< Device name, eg. switchtec0
desc: [c_char; 256]!< Device description, if available
pci_dev: [c_char; 256]!< PCI BDF string
product_id: [c_char; 32]!< Product ID
product_rev: [c_char; 8]!< Product revision
fw_version: [c_char; 32]!< Firmware version
path: [c_char; 4096]!< Path to the device
Trait Implementations§
Source§impl Clone for switchtec_device_info
impl Clone for switchtec_device_info
Source§fn clone(&self) -> switchtec_device_info
fn clone(&self) -> switchtec_device_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_device_info
impl Debug for switchtec_device_info
impl Copy for switchtec_device_info
Auto Trait Implementations§
impl Freeze for switchtec_device_info
impl RefUnwindSafe for switchtec_device_info
impl Send for switchtec_device_info
impl Sync for switchtec_device_info
impl Unpin for switchtec_device_info
impl UnwindSafe for switchtec_device_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