Struct blurmock::fake_descriptor::FakeBluetoothGATTDescriptor
[−]
[src]
pub struct FakeBluetoothGATTDescriptor { /* fields omitted */ }
Methods
impl FakeBluetoothGATTDescriptor
[src]
fn new(
id: String,
uuid: String,
characteristic: Arc<FakeBluetoothGATTCharacteristic>,
value: Option<Vec<u8>>,
flags: Vec<String>
) -> Arc<FakeBluetoothGATTDescriptor>
id: String,
uuid: String,
characteristic: Arc<FakeBluetoothGATTCharacteristic>,
value: Option<Vec<u8>>,
flags: Vec<String>
) -> Arc<FakeBluetoothGATTDescriptor>
fn new_empty(
characteristic: Arc<FakeBluetoothGATTCharacteristic>,
descriptor_id: String
) -> Arc<FakeBluetoothGATTDescriptor>
characteristic: Arc<FakeBluetoothGATTCharacteristic>,
descriptor_id: String
) -> Arc<FakeBluetoothGATTDescriptor>
fn get_id(&self) -> String
fn set_id(&self, value: String)
fn get_uuid(&self) -> Result<String, Box<Error>>
fn set_uuid(&self, value: String) -> Result<(), Box<Error>>
fn get_value(&self) -> Result<Vec<u8>, Box<Error>>
fn set_value(&self, value: Option<Vec<u8>>) -> Result<(), Box<Error>>
fn get_flags(&self) -> Result<Vec<String>, Box<Error>>
fn set_flags(&self, value: Vec<String>) -> Result<(), Box<Error>>
fn get_characteristic(
&self
) -> Result<Arc<FakeBluetoothGATTCharacteristic>, Box<Error>>
&self
) -> Result<Arc<FakeBluetoothGATTCharacteristic>, Box<Error>>
fn read_value(&self) -> Result<Vec<u8>, Box<Error>>
fn write_value(&self, value: Vec<u8>) -> Result<(), Box<Error>>
Trait Implementations
impl Clone for FakeBluetoothGATTDescriptor
[src]
fn clone(&self) -> FakeBluetoothGATTDescriptor
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more