[][src]Trait rustable::gatt::Descriptor

pub trait Descriptor {
    fn read(&mut self) -> Result<([u8; 512], usize), Error>;
fn read_cached(&mut self) -> Result<([u8; 512], usize), Error>;
fn write(&mut self, val: &[u8]) -> Result<(), Error>;
fn uuid(&mut self) -> UUID;
fn flags(&mut self) -> DescFlags; }

Describes the methods avaliable on local and remote GATT descriptors.

Required methods

fn read(&mut self) -> Result<([u8; 512], usize), Error>

Reads the value of the descriptor.

fn read_cached(&mut self) -> Result<([u8; 512], usize), Error>

Returns a previous value of the GATT descriptor. Check the individual implementors, for a more precise definition.

fn write(&mut self, val: &[u8]) -> Result<(), Error>

Writes a value to a GATT descriptors.

fn uuid(&mut self) -> UUID

Get the UUID of the descriptor.

fn flags(&mut self) -> DescFlags

Get the flags present on the descritptors

Loading content...

Implementors

Loading content...