• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //! Example showing how to access the `trusty.security_vm.vm_cid` system property with Rust.
2 
3 use trusty_properties::security_vm;
4 
main()5 fn main() {
6     match security_vm::vm_cid() {
7         Ok(Some(cid)) => println!("CID: {cid}"),
8         Ok(None) => println!("CID property not set"),
9         Err(e) => println!("Error: {e:?}"),
10     }
11 }
12