Searched refs:WeakBox (Results 1 – 7 of 7) sorted by relevance
/packages/modules/Bluetooth/system/rust/src/core/ |
D | shared_box.rs | 28 pub fn new_cyclic(f: impl FnOnce(WeakBox<T>) -> T) -> Self { in new_cyclic() 29 Self(Rc::new_cyclic(|weak| f(WeakBox(weak.clone())))) in new_cyclic() 33 pub fn downgrade(&self) -> WeakBox<T> { in downgrade() 34 WeakBox(Rc::downgrade(&self.0)) in downgrade() 58 pub struct WeakBox<T: ?Sized>(Weak<T>); struct 60 impl<T: ?Sized> WeakBox<T> { impl 73 impl<T: ?Sized> Clone for WeakBox<T> { implementation 85 pub fn downgrade(&self) -> WeakBox<T> { in downgrade() 86 WeakBox(self.1.clone()) in downgrade()
|
/packages/modules/Bluetooth/system/rust/src/gatt/mocks/ |
D | mock_database_callbacks.rs | 6 core::shared_box::{WeakBox, WeakBoxRef}, 31 OnLeConnect(TransportIndex, WeakBox<AttServerBearer<AttDatabaseImpl>>),
|
/packages/modules/Bluetooth/system/rust/src/gatt/ |
D | server.rs | 24 core::shared_box::{SharedBox, WeakBox, WeakBoxRef}, 60 database: WeakBox<GattDatabase>,
|
/packages/modules/Bluetooth/system/rust/src/ |
D | connection.rs | 14 shared_box::{SharedBox, WeakBox, WeakBoxRef}, 96 struct ConnectionManagerCallbackHandler(WeakBox<ConnectionManager>);
|
/packages/modules/Bluetooth/system/rust/src/gatt/server/services/ |
D | gatt.rs | 12 shared_box::{WeakBox, WeakBoxRef}, 40 bearer: WeakBox<AttServerBearer<AttDatabaseImpl>>,
|
/packages/modules/Bluetooth/system/rust/src/gatt/server/ |
D | att_server_bearer.rs | 13 shared_box::{WeakBox, WeakBoxRef}, 205 impl<T: AttDatabase + Clone + 'static> WeakBox<AttServerBearer<T>> { implementation
|
D | gatt_database.rs | 13 shared_box::{SharedBox, WeakBox, WeakBoxRef}, 344 gatt_db: WeakBox<GattDatabase>,
|