#[repr(u16)]pub enum Attribute {
None = 0,
Adc = 1,
AdcQueue = 2,
AdcQueue10k = 4,
Settings = 8,
PdPacket = 16,
PdTrace = 32,
LogMetadata = 512,
Unknown(u16),
}Expand description
Attribute values used in command headers and extended headers.
These values specify the type of data or command being sent.
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).
PdTrace = 32
Internal USB PD state-machine trace queues.
LogMetadata = 512
Offline recording metadata.
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