pub struct Voltages {
pub voltage_usb: u16,
pub voltage_dc: u16,
}Fields§
§voltage_usb: u16§voltage_dc: u16Trait Implementations§
Source§impl FromByteSlice for Voltages
impl FromByteSlice for Voltages
Source§fn bytes_expected() -> usize
fn bytes_expected() -> usize
Returns how many bytes are expected to deserialize a instance of the implementing type. Currently this method is only used for strings.
Source§fn from_le_byte_slice(bytes: &[u8]) -> Voltages
fn from_le_byte_slice(bytes: &[u8]) -> Voltages
Deserialize the implementing type from a byte slice.
impl Copy for Voltages
impl Eq for Voltages
impl StructuralPartialEq for Voltages
Auto Trait Implementations§
impl Freeze for Voltages
impl RefUnwindSafe for Voltages
impl Send for Voltages
impl Sync for Voltages
impl Unpin for Voltages
impl UnwindSafe for Voltages
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