Struct blurmock::fake_service::FakeBluetoothGATTService
[−]
[src]
pub struct FakeBluetoothGATTService { /* fields omitted */ }
Methods
impl FakeBluetoothGATTService
[src]
fn new(
id: String,
device: Arc<FakeBluetoothDevice>,
gatt_characteristics: Vec<Arc<FakeBluetoothGATTCharacteristic>>,
is_primary: bool,
included_services: Vec<Arc<FakeBluetoothGATTService>>,
uuid: String
) -> Arc<FakeBluetoothGATTService>
[src]
id: String,
device: Arc<FakeBluetoothDevice>,
gatt_characteristics: Vec<Arc<FakeBluetoothGATTCharacteristic>>,
is_primary: bool,
included_services: Vec<Arc<FakeBluetoothGATTService>>,
uuid: String
) -> Arc<FakeBluetoothGATTService>
fn new_empty(
device: Arc<FakeBluetoothDevice>,
service_id: String
) -> Arc<FakeBluetoothGATTService>
[src]
device: Arc<FakeBluetoothDevice>,
service_id: String
) -> Arc<FakeBluetoothGATTService>
fn get_id(&self) -> String
[src]
fn set_id(&self, value: String)
[src]
fn get_gatt_characteristic_structs(
&self
) -> Result<Vec<Arc<FakeBluetoothGATTCharacteristic>>, Box<Error>>
[src]
&self
) -> Result<Vec<Arc<FakeBluetoothGATTCharacteristic>>, Box<Error>>
fn is_primary(&self) -> Result<bool, Box<Error>>
[src]
fn set_is_primary(&self, value: bool) -> Result<(), Box<Error>>
[src]
fn set_includes(
&self,
value: Vec<Arc<FakeBluetoothGATTService>>
) -> Result<(), Box<Error>>
[src]
&self,
value: Vec<Arc<FakeBluetoothGATTService>>
) -> Result<(), Box<Error>>
fn get_uuid(&self) -> Result<String, Box<Error>>
[src]
fn set_uuid(&self, value: String) -> Result<(), Box<Error>>
[src]
fn get_device(&self) -> Result<Arc<FakeBluetoothDevice>, Box<Error>>
[src]
fn get_gatt_characteristics(&self) -> Result<Vec<String>, Box<Error>>
[src]
fn get_gatt_characteristic(
&self,
id: String
) -> Result<Arc<FakeBluetoothGATTCharacteristic>, Box<Error>>
[src]
&self,
id: String
) -> Result<Arc<FakeBluetoothGATTCharacteristic>, Box<Error>>
fn add_characteristic(
&self,
characteristic: Arc<FakeBluetoothGATTCharacteristic>
) -> Result<(), Box<Error>>
[src]
&self,
characteristic: Arc<FakeBluetoothGATTCharacteristic>
) -> Result<(), Box<Error>>
fn remove_characteristic(&self, id: String) -> Result<(), Box<Error>>
[src]
fn add_included_service(
&self,
service: Arc<FakeBluetoothGATTService>
) -> Result<(), Box<Error>>
[src]
&self,
service: Arc<FakeBluetoothGATTService>
) -> Result<(), Box<Error>>
fn remove_included_service(&self, id: String) -> Result<(), Box<Error>>
[src]
fn get_includes(&self) -> Result<Vec<String>, Box<Error>>
[src]
Trait Implementations
impl Clone for FakeBluetoothGATTService
[src]
fn clone(&self) -> FakeBluetoothGATTService
[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