Home
last modified time | relevance | path

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

/packages/modules/Bluetooth/system/rust/src/core/
Dshared_box.rs28 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/
Dmock_database_callbacks.rs6 core::shared_box::{WeakBox, WeakBoxRef},
31 OnLeConnect(TransportIndex, WeakBox<AttServerBearer<AttDatabaseImpl>>),
/packages/modules/Bluetooth/system/rust/src/gatt/
Dserver.rs24 core::shared_box::{SharedBox, WeakBox, WeakBoxRef},
60 database: WeakBox<GattDatabase>,
/packages/modules/Bluetooth/system/rust/src/
Dconnection.rs14 shared_box::{SharedBox, WeakBox, WeakBoxRef},
96 struct ConnectionManagerCallbackHandler(WeakBox<ConnectionManager>);
/packages/modules/Bluetooth/system/rust/src/gatt/server/services/
Dgatt.rs12 shared_box::{WeakBox, WeakBoxRef},
40 bearer: WeakBox<AttServerBearer<AttDatabaseImpl>>,
/packages/modules/Bluetooth/system/rust/src/gatt/server/
Datt_server_bearer.rs13 shared_box::{WeakBox, WeakBoxRef},
205 impl<T: AttDatabase + Clone + 'static> WeakBox<AttServerBearer<T>> { implementation
Dgatt_database.rs13 shared_box::{SharedBox, WeakBox, WeakBoxRef},
344 gatt_db: WeakBox<GattDatabase>,