Searched refs:WeakBoxRef (Results 1 – 7 of 7) sorted by relevance
/packages/modules/Bluetooth/system/rust/src/core/ |
D | shared_box.rs | 38 pub fn as_ref(&self) -> WeakBoxRef<T> { in as_ref() 39 WeakBoxRef(self.0.deref(), Rc::downgrade(&self.0)) in as_ref() 68 pub fn with<U>(&self, f: impl FnOnce(Option<WeakBoxRef<T>>) -> U) -> U { in with() 69 f(self.0.upgrade().as_deref().map(|x| WeakBoxRef(x, self.0.clone()))) in with() 80 pub struct WeakBoxRef<'a, T: ?Sized>(&'a T, Weak<T>); struct 82 impl<'a, T: ?Sized> WeakBoxRef<'a, T> { implementation 90 impl<'a, T: ?Sized> Deref for WeakBoxRef<'a, T> { implementation 98 impl<'a, T: ?Sized> Clone for WeakBoxRef<'a, T> { implementation
|
/packages/modules/Bluetooth/system/rust/src/gatt/mocks/ |
D | mock_database_callbacks.rs | 6 core::shared_box::{WeakBox, WeakBoxRef}, 42 bearer: WeakBoxRef<AttServerBearer<AttDatabaseImpl>>, in on_le_connect()
|
/packages/modules/Bluetooth/system/rust/src/gatt/ |
D | server.rs | 24 core::shared_box::{SharedBox, WeakBox, WeakBoxRef}, 171 ) -> Option<WeakBoxRef<AttServerBearer<AttDatabaseImpl>>> { in get_bearer()
|
/packages/modules/Bluetooth/system/rust/src/ |
D | connection.rs | 14 shared_box::{SharedBox, WeakBox, WeakBoxRef}, 140 impl WeakBoxRef<'_, ConnectionManager> { impl
|
/packages/modules/Bluetooth/system/rust/src/gatt/server/services/ |
D | gatt.rs | 12 shared_box::{WeakBox, WeakBoxRef}, 113 bearer: WeakBoxRef<AttServerBearer<AttDatabaseImpl>>, in on_le_connect()
|
/packages/modules/Bluetooth/system/rust/src/gatt/server/ |
D | att_server_bearer.rs | 13 shared_box::{WeakBox, WeakBoxRef}, 97 impl<T: AttDatabase + Clone + 'static> WeakBoxRef<'_, AttServerBearer<T>> { impl
|
D | gatt_database.rs | 13 shared_box::{SharedBox, WeakBox, WeakBoxRef}, 124 bearer: WeakBoxRef<AttServerBearer<AttDatabaseImpl>>, in on_le_connect() 148 bearer: WeakBoxRef<AttServerBearer<AttDatabaseImpl>>, in on_bearer_ready()
|