pub struct SimpleVmbusClientDeviceWrapper<T: SimpleVmbusClientDeviceAsync> { /* private fields */ }
Implementations§
Source§impl<T: SimpleVmbusClientDeviceAsync> SimpleVmbusClientDeviceWrapper<T>
impl<T: SimpleVmbusClientDeviceAsync> SimpleVmbusClientDeviceWrapper<T>
Sourcepub fn new(
driver: impl SpawnDriver + Clone,
dma_alloc: Arc<dyn DmaClient>,
device: T,
) -> Result<Self>
pub fn new( driver: impl SpawnDriver + Clone, dma_alloc: Arc<dyn DmaClient>, device: T, ) -> Result<Self>
Create a new instance.
pub fn instance_id(&self) -> Guid
pub fn detach( self, driver: impl SpawnDriver, recv_relay: Receiver<InterceptChannelRequest>, ) -> Result<OneshotSender<()>>
Trait Implementations§
Source§impl<T: SimpleVmbusClientDeviceAsync> InspectMut for SimpleVmbusClientDeviceWrapper<T>
impl<T: SimpleVmbusClientDeviceAsync> InspectMut for SimpleVmbusClientDeviceWrapper<T>
Source§fn inspect_mut(&mut self, req: Request<'_>)
fn inspect_mut(&mut self, req: Request<'_>)
Inspects the object.
Auto Trait Implementations§
impl<T> Freeze for SimpleVmbusClientDeviceWrapper<T>
impl<T> !RefUnwindSafe for SimpleVmbusClientDeviceWrapper<T>
impl<T> Send for SimpleVmbusClientDeviceWrapper<T>
impl<T> Sync for SimpleVmbusClientDeviceWrapper<T>
impl<T> Unpin for SimpleVmbusClientDeviceWrapper<T>
impl<T> !UnwindSafe for SimpleVmbusClientDeviceWrapper<T>
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