mirror of
https://github.com/edera-dev/krata.git
synced 2025-08-05 14:11:32 +00:00
chore(xen): rewrite event channel code
This commit is contained in:
@ -1,9 +1,9 @@
|
||||
use xenevtchn::error::Result;
|
||||
use xenevtchn::EventChannel;
|
||||
use xenevtchn::EventChannelService;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() -> Result<()> {
|
||||
let channel = EventChannel::open().await?;
|
||||
let channel = EventChannelService::open().await?;
|
||||
println!("channel opened");
|
||||
let port = channel.bind_unbound_port(0).await?;
|
||||
println!("port: {}", port);
|
||||
|
Reference in New Issue
Block a user