pub(crate) struct DebugRepo {
name: &'static str,
list: for<'a> fn(&'a StateRegistry) -> Pin<Box<dyn Future<Output = Vec<Value>> + Send + 'a>>,
get: for<'a> fn(&'a StateRegistry, &'a str) -> Pin<Box<dyn Future<Output = Option<Value>> + Send + 'a>>,
set: for<'a> fn(&'a StateRegistry, &'a str, Value) -> Pin<Box<dyn Future<Output = bool> + Send + 'a>>,
}Expand description
Monomorphized get/set/list shims for one repository type, so the registry can offer generic string-addressed access without naming the type. Captured at the point where the concrete type is still known.
Fields§
§name: &'static str§list: for<'a> fn(&'a StateRegistry) -> Pin<Box<dyn Future<Output = Vec<Value>> + Send + 'a>>§get: for<'a> fn(&'a StateRegistry, &'a str) -> Pin<Box<dyn Future<Output = Option<Value>> + Send + 'a>>§set: for<'a> fn(&'a StateRegistry, &'a str, Value) -> Pin<Box<dyn Future<Output = bool> + Send + 'a>>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DebugRepo
impl RefUnwindSafe for DebugRepo
impl Send for DebugRepo
impl Sync for DebugRepo
impl Unpin for DebugRepo
impl UnsafeUnpin for DebugRepo
impl UnwindSafe for DebugRepo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
Consume a handle, getting back the initial
Arc<> Read more