trouble-host

Crates

git

Versions

default

Flavors

Skip to main content

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".

Implementations on Foreign Types§

Source§

impl FixedGattValue for ()

Source§

const SIZE: usize = 0

Source§

impl FixedGattValue for bool

Source§

const SIZE: usize = 1

Source§

impl FixedGattValue for f32

Source§

impl FixedGattValue for f64

Source§

impl FixedGattValue for i8

Source§

impl FixedGattValue for i16

Source§

impl FixedGattValue for i32

Source§

impl FixedGattValue for i64

Source§

impl FixedGattValue for i128

Source§

impl FixedGattValue for u8

Source§

impl FixedGattValue for u16

Source§

impl FixedGattValue for u32

Source§

impl FixedGattValue for u64

Source§

impl FixedGattValue for u128

Implementors§