#[repr(C, packed(1))]pub struct usb_pd_cap_battery_info_descriptor {
pub bLength: __u8,
pub bDescriptorType: __u8,
pub bDevCapabilityType: __u8,
pub iBattery: __u8,
pub iSerial: __u8,
pub iManufacturer: __u8,
pub bBatteryId: __u8,
pub bReserved: __u8,
pub dwChargedThreshold: __le32,
pub dwWeakThreshold: __le32,
pub dwBatteryDesignCapacity: __le32,
pub dwBatteryLastFullchargeCapacity: __le32,
}
Fields§
§bLength: __u8
§bDescriptorType: __u8
§bDevCapabilityType: __u8
§iBattery: __u8
§iSerial: __u8
§iManufacturer: __u8
§bBatteryId: __u8
§bReserved: __u8
§dwChargedThreshold: __le32
§dwWeakThreshold: __le32
§dwBatteryDesignCapacity: __le32
§dwBatteryLastFullchargeCapacity: __le32
Trait Implementations§
source§impl Clone for usb_pd_cap_battery_info_descriptor
impl Clone for usb_pd_cap_battery_info_descriptor
source§fn clone(&self) -> usb_pd_cap_battery_info_descriptor
fn clone(&self) -> usb_pd_cap_battery_info_descriptor
Returns a copy 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 Default for usb_pd_cap_battery_info_descriptor
impl Default for usb_pd_cap_battery_info_descriptor
source§fn default() -> usb_pd_cap_battery_info_descriptor
fn default() -> usb_pd_cap_battery_info_descriptor
Returns the “default value” for a type. Read more
source§impl FromBytes for usb_pd_cap_battery_info_descriptor
impl FromBytes for usb_pd_cap_battery_info_descriptor
§fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized + NoCell,
fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized + NoCell,
Interprets the prefix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read more§fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized + NoCell,
fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized + NoCell,
Interprets the suffix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read more§fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [Self], &mut [u8])>where
Self: Sized + IntoBytes + NoCell,
fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [Self], &mut [u8])>where
Self: Sized + IntoBytes + NoCell,
Interprets the prefix of the given
bytes
as a &mut [Self]
with length
equal to count
without copying. Read more§fn mut_slice_from_suffix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [u8], &mut [Self])>where
Self: Sized + IntoBytes + NoCell,
fn mut_slice_from_suffix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [u8], &mut [Self])>where
Self: Sized + IntoBytes + NoCell,
Interprets the suffix of the given
bytes
as a &mut [Self]
with length
equal to count
without copying. Read more§fn read_from_prefix(bytes: &[u8]) -> Option<Self>where
Self: Sized,
fn read_from_prefix(bytes: &[u8]) -> Option<Self>where
Self: Sized,
source§impl FromZeros for usb_pd_cap_battery_info_descriptor
impl FromZeros for usb_pd_cap_battery_info_descriptor
source§impl IntoBytes for usb_pd_cap_battery_info_descriptor
impl IntoBytes for usb_pd_cap_battery_info_descriptor
impl Copy for usb_pd_cap_battery_info_descriptor
Auto Trait Implementations§
impl Freeze for usb_pd_cap_battery_info_descriptor
impl RefUnwindSafe for usb_pd_cap_battery_info_descriptor
impl Send for usb_pd_cap_battery_info_descriptor
impl Sync for usb_pd_cap_battery_info_descriptor
impl Unpin for usb_pd_cap_battery_info_descriptor
impl UnwindSafe for usb_pd_cap_battery_info_descriptor
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