pub struct ShutdownGuestIc { /* private fields */ }
Expand description
A shutdown IC client device.
Implementations§
Trait Implementations§
Source§impl InspectMut for ShutdownGuestIc
impl InspectMut for ShutdownGuestIc
Source§fn inspect_mut(&mut self, req: Request<'_>)
fn inspect_mut(&mut self, req: Request<'_>)
Inspects the object.
Source§impl SimpleVmbusClientDevice for ShutdownGuestIc
impl SimpleVmbusClientDevice for ShutdownGuestIc
Source§type SavedState = NoSavedState
type SavedState = NoSavedState
The saved state type.
Source§type Runner = ShutdownGuestChannel
type Runner = ShutdownGuestChannel
The type used to run an open channel.
Source§fn instance_id(&self) -> Guid
fn instance_id(&self) -> Guid
Returns the instance ID of the matching device.
Source§fn offer(&self, _offer: &OfferChannel) -> OfferResponse
fn offer(&self, _offer: &OfferChannel) -> OfferResponse
Respond to a new channel offer for a device matching instance_id().
Source§fn inspect(&mut self, req: Request<'_>, runner: Option<&mut Self::Runner>)
fn inspect(&mut self, req: Request<'_>, runner: Option<&mut Self::Runner>)
Inspects a channel.
Source§fn open(
&mut self,
_channel_idx: u16,
channel: RawAsyncChannel<MemoryBlockRingBuffer>,
) -> Result<Self::Runner, ChannelOpenError>
fn open( &mut self, _channel_idx: u16, channel: RawAsyncChannel<MemoryBlockRingBuffer>, ) -> Result<Self::Runner, ChannelOpenError>
Open successful for the channel number
channel_idx
. Read moreSource§fn close(&mut self, _channel_idx: u16)
fn close(&mut self, _channel_idx: u16)
Closes the channel number
channel_idx
after the runner has been
dropped.Source§fn supports_save_restore(
&mut self,
) -> Option<&mut dyn SaveRestoreSimpleVmbusClientDevice<SavedState = Self::SavedState, Runner = Self::Runner>>
fn supports_save_restore( &mut self, ) -> Option<&mut dyn SaveRestoreSimpleVmbusClientDevice<SavedState = Self::SavedState, Runner = Self::Runner>>
Returns a trait used to save/restore the device.
Auto Trait Implementations§
impl Freeze for ShutdownGuestIc
impl !RefUnwindSafe for ShutdownGuestIc
impl Send for ShutdownGuestIc
impl Sync for ShutdownGuestIc
impl Unpin for ShutdownGuestIc
impl !UnwindSafe for ShutdownGuestIc
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