Loading RustViz Engine...
Authenticate method invocations at compile time using non-constructible capability tokens.
This problem is currently in blueprint template mode. Once the concept foundation is finalized, live in-browser WebAssembly compilation and test assertion runners will be enabled here.
pub struct AdminToken(());
pub struct Session;
impl Session {
pub fn login_admin(&self) -> (Self, AdminToken) {
(Session, AdminToken(()))
}
pub fn delete_database(&self, _token: &AdminToken) {
// Only callable with valid proof token
}
}