nrf-softdevice

Crates

git

Versions

s132

Flavors

pub trait GattValue: Sized {
    const MIN_SIZE: usize;
    const MAX_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]

Implementations on Foreign Types§

source§

impl<const N: usize> GattValue for Vec<u8, N>

source§

const MIN_SIZE: usize = 0usize

source§

const MAX_SIZE: usize = N

source§

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

source§

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

source§

impl<const N: usize> GattValue for [u8; N]

source§

const MIN_SIZE: usize = 0usize

source§

const MAX_SIZE: usize = N

source§

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

source§

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

source§

impl<const N: usize> GattValue for String<N>

source§

const MIN_SIZE: usize = 0usize

source§

const MAX_SIZE: usize = N

source§

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

source§

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

Implementors§

source§

impl<T: FixedGattValue> GattValue for T

source§

const MIN_SIZE: usize = Self::SIZE

source§

const MAX_SIZE: usize = Self::SIZE