Struct blurmock::fake_characteristic::FakeBluetoothGATTCharacteristic
[−]
[src]
pub struct FakeBluetoothGATTCharacteristic { /* fields omitted */ }
Methods
impl FakeBluetoothGATTCharacteristic
[src]
fn new(
id: String,
uuid: String,
service: Arc<FakeBluetoothGATTService>,
value: Option<Vec<u8>>,
is_notifying: bool,
flags: Vec<String>,
gatt_descriptors: Vec<Arc<FakeBluetoothGATTDescriptor>>
) -> Arc<FakeBluetoothGATTCharacteristic>
[src]
id: String,
uuid: String,
service: Arc<FakeBluetoothGATTService>,
value: Option<Vec<u8>>,
is_notifying: bool,
flags: Vec<String>,
gatt_descriptors: Vec<Arc<FakeBluetoothGATTDescriptor>>
) -> Arc<FakeBluetoothGATTCharacteristic>
fn new_empty(
service: Arc<FakeBluetoothGATTService>,
characteristic_id: String
) -> Arc<FakeBluetoothGATTCharacteristic>
[src]
service: Arc<FakeBluetoothGATTService>,
characteristic_id: String
) -> Arc<FakeBluetoothGATTCharacteristic>
fn get_id(&self) -> String
[src]
fn set_id(&self, value: String)
[src]
fn get_uuid(&self) -> Result<String, Box<Error>>
[src]
fn set_uuid(&self, value: String) -> Result<(), Box<Error>>
[src]
fn get_value(&self) -> Result<Vec<u8>, Box<Error>>
[src]
fn set_value(&self, value: Option<Vec<u8>>) -> Result<(), Box<Error>>
[src]
fn is_notifying(&self) -> Result<bool, Box<Error>>
[src]
fn set_notifying(&self, value: bool) -> Result<(), Box<Error>>
[src]
fn get_flags(&self) -> Result<Vec<String>, Box<Error>>
[src]
fn set_flags(&self, value: Vec<String>) -> Result<(), Box<Error>>
[src]
fn get_gatt_descriptor_structs(
&self
) -> Result<Vec<Arc<FakeBluetoothGATTDescriptor>>, Box<Error>>
[src]
&self
) -> Result<Vec<Arc<FakeBluetoothGATTDescriptor>>, Box<Error>>
fn get_service(&self) -> Result<Arc<FakeBluetoothGATTService>, Box<Error>>
[src]
fn start_notify(&self) -> Result<(), Box<Error>>
[src]
fn stop_notify(&self) -> Result<(), Box<Error>>
[src]
fn get_gatt_descriptors(&self) -> Result<Vec<String>, Box<Error>>
[src]
fn get_gatt_descriptor(
&self,
id: String
) -> Result<Arc<FakeBluetoothGATTDescriptor>, Box<Error>>
[src]
&self,
id: String
) -> Result<Arc<FakeBluetoothGATTDescriptor>, Box<Error>>
fn add_descriptor(
&self,
descriptor: Arc<FakeBluetoothGATTDescriptor>
) -> Result<(), Box<Error>>
[src]
&self,
descriptor: Arc<FakeBluetoothGATTDescriptor>
) -> Result<(), Box<Error>>
fn remove_descriptor(&self, id: String) -> Result<(), Box<Error>>
[src]
fn read_value(&self) -> Result<Vec<u8>, Box<Error>>
[src]
fn write_value(&self, value: Vec<u8>) -> Result<(), Box<Error>>
[src]
Trait Implementations
impl Clone for FakeBluetoothGATTCharacteristic
[src]
fn clone(&self) -> FakeBluetoothGATTCharacteristic
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more