pub fn update_from_restored_device(&mut self, device: SharedDeviceType) {
        match device {
            SharedDeviceType::SharedBlock(block) => {
                self.block.add_device(block);
            }

            SharedDeviceType::SharedNetwork(network) => {
                self.net_builder.add_device(network);
            }

            SharedDeviceType::SharedBalloon(balloon) => {
                self.balloon.set_device(balloon);
            }

            SharedDeviceType::SharedVsock(vsock) => {
                self.vsock.set_device(vsock);
            }
        }
    }
/// Updates the resources from a restored device (used for configuring resources when
/// restoring from a snapshot).
Updates the resources from a restored device (used for configuring resources when
restoring from a snapshot).
Updates the resources from a restored device ( used for configuring resources when restoring from a snapshot ) .
pub fn update_from_restored_device(&mut self, device: SharedDeviceType) {
        match device {
            SharedDeviceType::SharedBlock(block) => {
                self.block.add_device(block);
            }
            SharedDeviceType::SharedNetwork(network) => {
                self.net_builder.add_device(network);
            }
            SharedDeviceType::SharedBalloon(balloon) => {
                self.balloon.set_device(balloon);
            }
            SharedDeviceType::SharedVsock(vsock) => {
                self.vsock.set_device(vsock);
            }
        }
    }
pub fn update_from_restored_device ( & mut self , device : SharedDeviceType ) { match device { SharedDeviceType :: SharedBlock ( block ) => { self . block . add_device ( block ) ; } SharedDeviceType :: SharedNetwork ( network ) => { self . net_builder . add_device ( network ) ; } SharedDeviceType :: SharedBalloon ( balloon ) => { self . balloon . set_device ( balloon ) ; } SharedDeviceType :: SharedVsock ( vsock ) => { self . vsock . set_device ( vsock ) ; } } }
Updates the resources from a restored device (used for configuring resources when
restoring from a snapshot).
Updates the resources from a restored device ( used for configuring resources when restoring from a snapshot ) .
&mut self
device
SharedDeviceType
&mut self
device
SharedDeviceType