libxen 0.5.0

Safe bindings for Xen libraries
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::rc::Rc;

use super::XenInterfaceHandle;
use crate::XenError;

#[derive(Debug, Clone)]
pub struct XenInterface {
    pub(crate) handle: Rc<XenInterfaceHandle>,
}

impl XenInterface {
    pub fn new() -> Result<Self, XenError> {
        Ok(Self {
            handle: Rc::new(XenInterfaceHandle::new()?),
        })
    }
}