pub struct ChannelHandle<T: ?Sized>(/* private fields */);
Expand description
A handle to an offered channel.
The channel will be revoked when this is dropped.
Implementations§
Source§impl<T: 'static + VmbusDevice> ChannelHandle<T>
impl<T: 'static + VmbusDevice> ChannelHandle<T>
Source§impl ChannelHandle<dyn VmbusDevice>
impl ChannelHandle<dyn VmbusDevice>
Sourcepub async fn revoke(self) -> Option<Box<dyn VmbusDevice>>
pub async fn revoke(self) -> Option<Box<dyn VmbusDevice>>
Revokes the channel, returning it if the VMBus server is still running.
Source§impl<T: 'static + VmbusDevice + ?Sized> ChannelHandle<T>
impl<T: 'static + VmbusDevice + ?Sized> ChannelHandle<T>
Sourcepub async fn save(&self) -> Result<Option<SavedStateBlob>>
pub async fn save(&self) -> Result<Option<SavedStateBlob>>
Saves a stopped device.
Sourcepub async fn restore(&self, buffer: SavedStateBlob) -> Result<()>
pub async fn restore(&self, buffer: SavedStateBlob) -> Result<()>
Restores a stopped device.
Trait Implementations§
Source§impl<T: ?Sized> Debug for ChannelHandle<T>
impl<T: ?Sized> Debug for ChannelHandle<T>
Auto Trait Implementations§
impl<T> Freeze for ChannelHandle<T>where
T: ?Sized,
impl<T> !RefUnwindSafe for ChannelHandle<T>
impl<T> Send for ChannelHandle<T>where
T: ?Sized,
impl<T> Sync for ChannelHandle<T>where
T: ?Sized,
impl<T> Unpin for ChannelHandle<T>where
T: ?Sized,
impl<T> !UnwindSafe for ChannelHandle<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