How to capture Windows SessionSwitch event in Rust

I am an experienced programmer but a complete newbie to Rust and Windows programming. I am thinking of building a small app which will be required to determine whether the screen is locked. I referred https://stackoverflow.com/questions/44980/programmatically-determine-a-duration-of-a-locked-workstation?utm_source=pocket_saves
Looks like the only way to do this on windows is by capturing SessionSwitch event. Now rust has a dedicated windows crate for using Windows API. But I couldn't find any reference to
SessionSwitch there. What am I missing? I am wondering whether what I need is possible with Rust at all or not.