pub struct VirtManagerExt(pub Box<dyn VirtManagerBackend>);Expand description
Extension wrapping a VirtManagerBackend so it can be accessed through
the externalities by the virtualization host functions.
Tuple Fields§
§0: Box<dyn VirtManagerBackend>Implementations§
Source§impl VirtManagerExt
impl VirtManagerExt
Sourcepub fn new<B: VirtManagerBackend>(backend: B) -> Self
pub fn new<B: VirtManagerBackend>(backend: B) -> Self
Wrap the given backend so it can be registered as an externalities extension.
Trait Implementations§
Source§impl Deref for VirtManagerExt
impl Deref for VirtManagerExt
Source§impl DerefMut for VirtManagerExt
impl DerefMut for VirtManagerExt
Source§impl Extension for VirtManagerExt
impl Extension for VirtManagerExt
Source§fn as_mut_any(&mut self) -> &mut dyn Any
fn as_mut_any(&mut self) -> &mut dyn Any
Return the extension as
&mut dyn Any. Read moreSource§fn start_transaction(&mut self, ty: TransactionType)
fn start_transaction(&mut self, ty: TransactionType)
Start a transaction of type
ty.Source§fn commit_transaction(&mut self, ty: TransactionType)
fn commit_transaction(&mut self, ty: TransactionType)
Commit a transaction of type
ty.Source§fn rollback_transaction(&mut self, ty: TransactionType)
fn rollback_transaction(&mut self, ty: TransactionType)
Rollback a transaction of type
ty.Source§impl From<Box<dyn VirtManagerBackend>> for VirtManagerExt
impl From<Box<dyn VirtManagerBackend>> for VirtManagerExt
Source§fn from(inner: Box<dyn VirtManagerBackend>) -> Self
fn from(inner: Box<dyn VirtManagerBackend>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for VirtManagerExt
impl !Sync for VirtManagerExt
impl !UnwindSafe for VirtManagerExt
impl Freeze for VirtManagerExt
impl Send for VirtManagerExt
impl Unpin for VirtManagerExt
impl UnsafeUnpin for VirtManagerExt
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