trouble-host

Crates

0.6.0

Versions

default

Flavors

FixedGattValue

Trait FixedGattValue 

Source
pub trait FixedGattValue: FromGatt {
    const SIZE: usize;
}
Expand description

Trait to allow conversion of a fixed size type to and from a byte slice

Required Associated Constants§

Source

const SIZE: usize

Size of the type in bytes

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl FixedGattValue for bool

Source§

const SIZE: usize = 1usize

Source§

impl FixedGattValue for f32

Source§

const SIZE: usize = 4usize

Source§

impl FixedGattValue for f64

Source§

const SIZE: usize = 8usize

Source§

impl FixedGattValue for i8

Source§

const SIZE: usize = 1usize

Source§

impl FixedGattValue for i16

Source§

const SIZE: usize = 2usize

Source§

impl FixedGattValue for i32

Source§

const SIZE: usize = 4usize

Source§

impl FixedGattValue for i64

Source§

const SIZE: usize = 8usize

Source§

impl FixedGattValue for i128

Source§

const SIZE: usize = 16usize

Source§

impl FixedGattValue for u8

Source§

const SIZE: usize = 1usize

Source§

impl FixedGattValue for u16

Source§

const SIZE: usize = 2usize

Source§

impl FixedGattValue for u32

Source§

const SIZE: usize = 4usize

Source§

impl FixedGattValue for u64

Source§

const SIZE: usize = 8usize

Source§

impl FixedGattValue for u128

Source§

const SIZE: usize = 16usize

Implementors§