Home
last modified time | relevance | path

Searched refs:WeakBoxRef (Results 1 – 7 of 7) sorted by relevance

/packages/modules/Bluetooth/system/rust/src/core/
Dshared_box.rs38 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/
Dmock_database_callbacks.rs6 core::shared_box::{WeakBox, WeakBoxRef},
42 bearer: WeakBoxRef<AttServerBearer<AttDatabaseImpl>>, in on_le_connect()
/packages/modules/Bluetooth/system/rust/src/gatt/
Dserver.rs24 core::shared_box::{SharedBox, WeakBox, WeakBoxRef},
171 ) -> Option<WeakBoxRef<AttServerBearer<AttDatabaseImpl>>> { in get_bearer()
/packages/modules/Bluetooth/system/rust/src/
Dconnection.rs14 shared_box::{SharedBox, WeakBox, WeakBoxRef},
140 impl WeakBoxRef<'_, ConnectionManager> { impl
/packages/modules/Bluetooth/system/rust/src/gatt/server/services/
Dgatt.rs12 shared_box::{WeakBox, WeakBoxRef},
113 bearer: WeakBoxRef<AttServerBearer<AttDatabaseImpl>>, in on_le_connect()
/packages/modules/Bluetooth/system/rust/src/gatt/server/
Datt_server_bearer.rs13 shared_box::{WeakBox, WeakBoxRef},
97 impl<T: AttDatabase + Clone + 'static> WeakBoxRef<'_, AttServerBearer<T>> { impl
Dgatt_database.rs13 shared_box::{SharedBox, WeakBox, WeakBoxRef},
124 bearer: WeakBoxRef<AttServerBearer<AttDatabaseImpl>>, in on_le_connect()
148 bearer: WeakBoxRef<AttServerBearer<AttDatabaseImpl>>, in on_bearer_ready()