#[repr(u16)]pub enum Attribute {
None = 0,
Adc = 1,
AdcQueue = 2,
AdcQueue10k = 4,
Settings = 8,
PdPacket = 16,
Unknown512 = 512,
Unknown1609 = 1_609,
Unknown11046 = 11_046,
Unknown26817 = 26_817,
Unknown(u16),
}Expand description
Attribute values used in command headers and extended headers.
These values specify the type of data or command being sent. Unknown attributes have been discovered through protocol analysis but their purpose has not yet been reverse engineered.
Variants§
None = 0
Adc = 1
AdcQueue = 2
AdcQueue10k = 4
Settings = 8
PdPacket = 16
PD protocol data. Response is either 12-byte PdStatus (measurements only) or longer PdEventStream (12-byte preamble + PD wire events).
Unknown512 = 512
Unknown1609 = 1_609
Unknown11046 = 11_046
Unknown26817 = 26_817
Unknown(u16)
Trait Implementations§
impl Copy for Attribute
impl Eq for Attribute
Source§impl From<Attribute> for AttributeSet
impl From<Attribute> for AttributeSet
Source§impl FromIterator<Attribute> for AttributeSet
impl FromIterator<Attribute> for AttributeSet
Source§impl FromPrimitive for Attribute
impl FromPrimitive for Attribute
impl StructuralPartialEq for Attribute
Auto Trait Implementations§
impl Freeze for Attribute
impl RefUnwindSafe for Attribute
impl Send for Attribute
impl Sync for Attribute
impl Unpin for Attribute
impl UnsafeUnpin for Attribute
impl UnwindSafe for Attribute
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