pub enum AnyVirtioDeviceModule {
Show 13 variants
Rng(VirtioRngModule),
Tpm(VirtioTpmModule),
Vsock(VirtioVsockModule),
Net(NetParameters),
Scsi(VirtioScsiModule),
Block(DiskOption),
Snd(VirtioSndModule),
Console(VirtioConsoleModule),
Pmem(VirtioPmemModule),
PmemExt2(VirtioPmemExt2Module),
Fs(VirtioFsModule),
P9(Virtio9pModule),
Vendor(VendorDeviceModule),
}Variants§
Rng(VirtioRngModule)
Tpm(VirtioTpmModule)
Vsock(VirtioVsockModule)
Net(NetParameters)
Scsi(VirtioScsiModule)
Block(DiskOption)
Snd(VirtioSndModule)
Console(VirtioConsoleModule)
Pmem(VirtioPmemModule)
PmemExt2(VirtioPmemExt2Module)
Fs(VirtioFsModule)
P9(Virtio9pModule)
Vendor(VendorDeviceModule)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AnyVirtioDeviceModule
impl<'de> Deserialize<'de> for AnyVirtioDeviceModule
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<DiskOption> for AnyVirtioDeviceModule
impl From<DiskOption> for AnyVirtioDeviceModule
Source§fn from(m: DiskOption) -> Self
fn from(m: DiskOption) -> Self
Converts to this type from the input type.
Source§impl From<NetParameters> for AnyVirtioDeviceModule
impl From<NetParameters> for AnyVirtioDeviceModule
Source§fn from(m: NetParameters) -> Self
fn from(m: NetParameters) -> Self
Converts to this type from the input type.
Source§impl From<VendorDeviceModule> for AnyVirtioDeviceModule
impl From<VendorDeviceModule> for AnyVirtioDeviceModule
Source§fn from(m: VendorDeviceModule) -> Self
fn from(m: VendorDeviceModule) -> Self
Converts to this type from the input type.
Source§impl From<Virtio9pModule> for AnyVirtioDeviceModule
impl From<Virtio9pModule> for AnyVirtioDeviceModule
Source§fn from(m: Virtio9pModule) -> Self
fn from(m: Virtio9pModule) -> Self
Converts to this type from the input type.
Source§impl From<VirtioConsoleModule> for AnyVirtioDeviceModule
impl From<VirtioConsoleModule> for AnyVirtioDeviceModule
Source§fn from(m: VirtioConsoleModule) -> Self
fn from(m: VirtioConsoleModule) -> Self
Converts to this type from the input type.
Source§impl From<VirtioFsModule> for AnyVirtioDeviceModule
impl From<VirtioFsModule> for AnyVirtioDeviceModule
Source§impl From<VirtioPmemExt2Module> for AnyVirtioDeviceModule
impl From<VirtioPmemExt2Module> for AnyVirtioDeviceModule
Source§fn from(m: VirtioPmemExt2Module) -> Self
fn from(m: VirtioPmemExt2Module) -> Self
Converts to this type from the input type.
Source§impl From<VirtioPmemModule> for AnyVirtioDeviceModule
impl From<VirtioPmemModule> for AnyVirtioDeviceModule
Source§fn from(m: VirtioPmemModule) -> Self
fn from(m: VirtioPmemModule) -> Self
Converts to this type from the input type.
Source§impl From<VirtioRngModule> for AnyVirtioDeviceModule
impl From<VirtioRngModule> for AnyVirtioDeviceModule
Source§fn from(m: VirtioRngModule) -> Self
fn from(m: VirtioRngModule) -> Self
Converts to this type from the input type.
Source§impl From<VirtioScsiModule> for AnyVirtioDeviceModule
impl From<VirtioScsiModule> for AnyVirtioDeviceModule
Source§fn from(m: VirtioScsiModule) -> Self
fn from(m: VirtioScsiModule) -> Self
Converts to this type from the input type.
Source§impl From<VirtioSndModule> for AnyVirtioDeviceModule
impl From<VirtioSndModule> for AnyVirtioDeviceModule
Source§fn from(m: VirtioSndModule) -> Self
fn from(m: VirtioSndModule) -> Self
Converts to this type from the input type.
Source§impl From<VirtioTpmModule> for AnyVirtioDeviceModule
impl From<VirtioTpmModule> for AnyVirtioDeviceModule
Source§fn from(m: VirtioTpmModule) -> Self
fn from(m: VirtioTpmModule) -> Self
Converts to this type from the input type.
Source§impl From<VirtioVsockModule> for AnyVirtioDeviceModule
impl From<VirtioVsockModule> for AnyVirtioDeviceModule
Source§fn from(m: VirtioVsockModule) -> Self
fn from(m: VirtioVsockModule) -> Self
Converts to this type from the input type.
Source§impl Serialize for AnyVirtioDeviceModule
impl Serialize for AnyVirtioDeviceModule
Source§impl VirtioDeviceModule for AnyVirtioDeviceModule
impl VirtioDeviceModule for AnyVirtioDeviceModule
Source§fn sort_name(&self) -> &'static str
fn sort_name(&self) -> &'static str
Name of the device used to determine init processing order.
Source§fn create(&self, cx: &mut VirtioDeviceArgs<'_>) -> Result<Box<dyn VirtioDevice>>
fn create(&self, cx: &mut VirtioDeviceArgs<'_>) -> Result<Box<dyn VirtioDevice>>
Create an instance of this device.
Source§fn create_jail(
&self,
jail_config: Option<&JailConfig>,
) -> Result<Option<Minijail>>
fn create_jail( &self, jail_config: Option<&JailConfig>, ) -> Result<Option<Minijail>>
Optionally create a jail for this device.
Auto Trait Implementations§
impl Freeze for AnyVirtioDeviceModule
impl RefUnwindSafe for AnyVirtioDeviceModule
impl Send for AnyVirtioDeviceModule
impl Sync for AnyVirtioDeviceModule
impl Unpin for AnyVirtioDeviceModule
impl UnwindSafe for AnyVirtioDeviceModule
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