Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/algoscienceacademy/RustUI
/ subscribe
Method
subscribe
src/state/mod.rs:28–33 ·
view source on GitHub ↗
(&mut self, callback: F)
Source
from the content-addressed store, hash-verified
26
}
27
28
pub fn subscribe<F>(&mut self, callback: F)
29
where
30
F: Fn(&T) + 'static,
31
{
32
self.subscribers.push(Box::new(callback));
33
}
34
}
Callers
nothing calls this directly
Calls
1
push
Method · 0.80
Tested by
no test coverage detected