pub struct RestoreControl<'a> { /* private fields */ }
Expand description
A control interface for use to restore channels during the lifetime of the
SaveRestoreVmbusDevice::restore
method.
Implementations§
Source§impl RestoreControl<'_>
impl RestoreControl<'_>
Sourcepub async fn restore(
&mut self,
states: &[bool],
) -> Result<Vec<Option<OpenRequest>>, ChannelRestoreError>
pub async fn restore( &mut self, states: &[bool], ) -> Result<Vec<Option<OpenRequest>>, ChannelRestoreError>
Restore the channel and subchannels.
If this is never called, then the channel is revoked and reoffered instead of restored.
states
contains a boolean for the channel and each offered subchannel.
If true, restore the channel into an open state. If false, restore it
into a closed state.
Auto Trait Implementations§
impl<'a> Freeze for RestoreControl<'a>
impl<'a> !RefUnwindSafe for RestoreControl<'a>
impl<'a> Send for RestoreControl<'a>
impl<'a> Sync for RestoreControl<'a>
impl<'a> Unpin for RestoreControl<'a>
impl<'a> !UnwindSafe for RestoreControl<'a>
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