Searched refs:SharedBox (Results 1 – 8 of 8) sorted by relevance
/packages/modules/Bluetooth/system/rust/src/gatt/server/ |
D | gatt_database.rs | 13 shared_box::{SharedBox, WeakBox, WeakBoxRef}, 331 impl SharedBox<GattDatabase> { impl 544 let gatt_db = SharedBox::new(GattDatabase::new()); in test_read_empty_db() 555 let gatt_db = SharedBox::new(GattDatabase::new()); in test_single_service() 594 let gatt_db = SharedBox::new(GattDatabase::new()); in test_service_removal() 673 let gatt_db = SharedBox::new(GattDatabase::new()); in test_single_characteristic_declaration() 745 let gatt_db = SharedBox::new(GattDatabase::new()); in test_all_characteristic_permissions() 795 let gatt_db = SharedBox::new(GattDatabase::new()); in test_single_characteristic_value() 841 let gatt_db = SharedBox::new(GattDatabase::new()); in test_unreadable_characteristic() 868 let gatt_db = SharedBox::new(GattDatabase::new()); in test_handle_clash() [all …]
|
D | att_server_bearer.rs | 227 core::{shared_box::SharedBox, uuid::Uuid}, 257 ) -> (SharedBox<AttServerBearer<TestAttDatabase>>, UnboundedReceiver<AttBuilder>) { in open_connection() 330 let db = SharedBox::new(GattDatabase::new()); in test_concurrent_transaction_failure() 358 let conn = SharedBox::new(AttServerBearer::new(db.get_att_database(TCB_IDX), send_packet)); in test_concurrent_transaction_failure()
|
/packages/modules/Bluetooth/system/rust/src/core/ |
D | shared_box.rs | 18 pub struct SharedBox<T: ?Sized>(Rc<T>); struct 20 impl<T> SharedBox<T> { implementation 43 impl<T> From<T> for SharedBox<T> { implementation 49 impl<T> Deref for SharedBox<T> { implementation
|
/packages/modules/Bluetooth/system/rust/src/gatt/ |
D | server.rs | 24 core::shared_box::{SharedBox, WeakBox, WeakBoxRef}, 50 databases: HashMap<ServerId, SharedBox<GattDatabase>>, 59 bearer: SharedBox<AttServerBearer<AttDatabaseImpl>>, 95 let bearer = SharedBox::new(AttServerBearer::new( in on_le_connect()
|
/packages/modules/Bluetooth/system/rust/src/gatt/server/services/ |
D | gap.rs | 99 core::shared_box::SharedBox, 109 fn init_dbs() -> (SharedBox<GattDatabase>, impl AttDatabase) { in init_dbs() 112 let gatt_database = SharedBox::new(gatt_database); in init_dbs()
|
D | gatt.rs | 183 core::shared_box::SharedBox, 202 fn init_gatt_db() -> SharedBox<GattDatabase> { in init_gatt_db() 205 SharedBox::new(gatt_database) in init_gatt_db() 209 gatt_database: &SharedBox<GattDatabase>, in add_connection() 211 … ) -> (AttDatabaseImpl, SharedBox<AttServerBearer<AttDatabaseImpl>>, UnboundedReceiver<AttBuilder>) in add_connection() 215 let bearer = SharedBox::new(AttServerBearer::new(att_database.clone(), move |packet| { in add_connection()
|
/packages/modules/Bluetooth/system/rust/src/ |
D | lib.rs | 23 use self::core::shared_box::SharedBox; 58 pub connection_manager: SharedBox<connection::ConnectionManager>,
|
D | connection.rs | 14 shared_box::{SharedBox, WeakBox, WeakBoxRef}, 120 pub fn new(le_manager: impl InactiveLeAclManager) -> SharedBox<Self> { in new() 121 SharedBox::new_cyclic(|weak| Self { in new()
|