Trait galaxy_buds_rs::message::bud_property::BudProperty[][src]

pub trait BudProperty {
    type Item;
    fn decode(val: u8) -> Self::Item;
fn encode(&self) -> u8; fn side_val(val: u8, side: Side) -> u8 { ... }
fn value(val: u8, side: Side) -> Self::Item { ... } }
Expand description

A property value of a single earbud

Associated Types

Required methods

Decode the value. Returns a property variant

Needs to be implemented to send a property variant inside a msg payload

Provided methods

Get the corresponding value of a byte based on the side of the earbud (left/right)

Get the property item decoded based on the side and msg byte

Implementors