#[tokio::main] async fn main() { // 1. Register i32 type busybody::helpers::register_type(42); // 2. Get a cloned of the i32 type let value = busybody::helpers::get_type::(); println!("i32 type value is: {:#?}", value); // 3. Forget the i32 type let value = busybody::helpers::forget_type::(); println!("forgotten i32: {:#?}", value); let value = busybody::helpers::forget_type::(); println!("No registered i32 type: {:#?}", value); busybody::helpers::set_type(4000); // i32 value set on the global container let proxy_container = busybody::helpers::make_proxy(); proxy_container.set_type(42); // i32 value set in a proxy container println!( "remove proxy i32 value: {:?}", proxy_container.forget_type::() ); println!( "global i32 value: {:?}", busybody::helpers::forget_type::() ); }