xenevtchn_simple/
simple.rs

1use xenevtchn::error::Result;
2use xenevtchn::EventChannelService;
3
4#[tokio::main]
5async fn main() -> Result<()> {
6    let channel = EventChannelService::open().await?;
7    println!("channel opened");
8    let port = channel.bind_unbound_port(0).await?;
9    println!("port: {}", port);
10    channel.unbind(port).await?;
11    Ok(())
12}