pub struct VhostDev { /* private fields */ }Implementations§
Source§impl VhostDev
impl VhostDev
pub fn new<P: AsRef<Path>>(path: P) -> Result<Self, Error>
pub fn get_features(&self) -> Result<u64, Error>
pub fn set_features(&self, val: &u64) -> Result<(), Error>
pub fn get_backend_features(&self) -> Result<VhostFeature, Error>
pub fn set_backend_features(&self, val: &VhostFeature) -> Result<(), Error>
pub fn set_owner(&self) -> Result<(), Error>
pub fn set_virtq_num(&self, state: &VirtqState) -> Result<(), Error>
pub fn set_virtq_addr(&self, addr: &VirtqAddr) -> Result<(), Error>
pub fn set_virtq_base(&self, state: &VirtqState) -> Result<(), Error>
pub fn set_virtq_kick(&self, file: &VirtqFile) -> Result<(), Error>
pub fn set_virtq_call(&self, file: &VirtqFile) -> Result<(), Error>
pub fn set_virtq_err(&self, file: &VirtqFile) -> Result<(), Error>
pub fn set_mem_table<const N: usize>( &self, table: &MemoryMultipleRegion<N>, ) -> Result<(), Error>
pub fn vsock_set_guest_cid(&self, cid: u64) -> Result<(), Error>
pub fn vsock_set_running(&self, val: bool) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VhostDev
impl RefUnwindSafe for VhostDev
impl Send for VhostDev
impl Sync for VhostDev
impl Unpin for VhostDev
impl UnsafeUnpin for VhostDev
impl UnwindSafe for VhostDev
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more