pub struct VirtioTpmModule {
pub(crate) backend: TpmBackendConfig,
}Expand description
Module for creating a Virtio TPM device.
Fields§
§backend: TpmBackendConfigImplementations§
Source§impl VirtioTpmModule
impl VirtioTpmModule
Sourcepub fn with_swtpm_socket(socket_path: PathBuf) -> Self
pub fn with_swtpm_socket(socket_path: PathBuf) -> Self
Create a new VirtioTpmModule backed by swtpm on socket_path.
Trait Implementations§
Source§impl Default for VirtioTpmModule
impl Default for VirtioTpmModule
Source§fn default() -> VirtioTpmModule
fn default() -> VirtioTpmModule
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for VirtioTpmModule
impl<'de> Deserialize<'de> for VirtioTpmModule
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 Serialize for VirtioTpmModule
impl Serialize for VirtioTpmModule
Source§impl VirtioDeviceModule for VirtioTpmModule
impl VirtioDeviceModule for VirtioTpmModule
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,
args: &mut VirtioDeviceArgs<'_>,
) -> Result<Box<dyn VirtioDevice>>
fn create( &self, args: &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 VirtioTpmModule
impl RefUnwindSafe for VirtioTpmModule
impl Send for VirtioTpmModule
impl Sync for VirtioTpmModule
impl Unpin for VirtioTpmModule
impl UnwindSafe for VirtioTpmModule
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