mirror of
https://github.com/edera-dev/krata.git
synced 2026-11-04 21:22:20 +00:00
krata: reorganize crates
This commit is contained in:
97 files changed
+24
-24
No files matched your search
@@ -0,0 +1,12 @@
|
||||
use xenevtchn::error::Result;
|
||||
use xenevtchn::EventChannel;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() -> Result<()> {
|
||||
let channel = EventChannel::open().await?;
|
||||
println!("channel opened");
|
||||
let port = channel.bind_unbound_port(0).await?;
|
||||
println!("port: {}", port);
|
||||
channel.unbind(port).await?;
|
||||
Ok(())
|
||||
}
|
||||
Reference in new issue
Block a user