[−][src]Trait galaxy_buds_live_rs::message::bud_property::BudProperty
A property value of a single earbud
Associated Types
type Item
Required methods
fn decode(val: u8) -> Self::Item
Decode the value. Returns a property variant
fn encode(&self) -> u8
Needs to be implemented to send a property variant inside a msg payload
Provided methods
fn side_val(val: u8, side: Side) -> u8
Get the corresponding value of a byte based on the side of the earbud (left/right)
fn value(val: u8, side: Side) -> Self::Item
Get the property item decoded based on the side and msg byte
Implementors
impl BudProperty for EqualizerType
[src]
impl BudProperty for Placement
[src]
Placement comes inside some payloads so define the decode() here