Struct rustable::gatt::AttValue[][src]

pub struct AttValue { /* fields omitted */ }

Represents the value of a characteristic or descriptor.

Implementations

impl AttValue[src]

pub fn new(len: usize) -> Self[src]

pub fn resize(&mut self, new_len: usize, value: u8)[src]

pub fn resize_with<F: FnMut() -> u8>(&mut self, new_len: usize, f: F)[src]

pub fn as_slice(&self) -> &[u8][src]

pub fn as_mut_slice(&mut self) -> &mut [u8][src]

pub fn update(&mut self, slice: &[u8], offset: usize)[src]

pub fn push(&mut self, byte: u8)[src]

pub fn extend_from_slice(&mut self, slice: &[u8])[src]

pub fn remaining(&self) -> usize[src]

Trait Implementations

impl Borrow<[u8]> for AttValue[src]

impl Clone for AttValue[src]

impl Debug for AttValue[src]

impl Default for AttValue[src]

impl Deref for AttValue[src]

type Target = [u8]

The resulting type after dereferencing.

impl DerefMut for AttValue[src]

impl From<&'_ [u8]> for AttValue[src]

Panics

Panics if the slice is longer than 512.

impl Marshal for AttValue[src]

impl PartialEq<AttValue> for AttValue[src]

impl Signature for AttValue[src]

impl<'buf, 'fds> Unmarshal<'buf, 'fds> for AttValue[src]

impl Eq for AttValue[src]

Auto Trait Implementations

impl RefUnwindSafe for AttValue

impl Send for AttValue

impl Sync for AttValue

impl Unpin for AttValue

impl UnwindSafe for AttValue

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.