nrf-softdevice

Crates

0.1.0

Versions

s112

Flavors

Trait FixedGattValue

Source
pub trait FixedGattValue: Sized {
    const SIZE: usize;

    // Required methods
    fn from_gatt(data: &[u8]) -> Self;
    fn to_gatt(&self) -> &[u8];
}

Required Associated Constants§

Required Methods§

Source

fn from_gatt(data: &[u8]) -> Self

Source

fn to_gatt(&self) -> &[u8]

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§

fn from_gatt(data: &[u8]) -> Self

Source§

fn to_gatt(&self) -> &[u8]

Implementors§