pub struct EntropyDevice {
pub rate_limiter: Option<RateLimiter>,
}
Expand description
Configures a virtual device that provides entropy/randomness to the guest VM. This is crucial for applications in the guest that require cryptographic operations or random number generation.
Fields§
§rate_limiter: Option<RateLimiter>
Rate limiter for the entropy device
Trait Implementations§
Source§impl Debug for EntropyDevice
impl Debug for EntropyDevice
Source§impl Default for EntropyDevice
impl Default for EntropyDevice
Source§fn default() -> EntropyDevice
fn default() -> EntropyDevice
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EntropyDevice
impl<'de> Deserialize<'de> for EntropyDevice
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
Auto Trait Implementations§
impl Freeze for EntropyDevice
impl RefUnwindSafe for EntropyDevice
impl Send for EntropyDevice
impl Sync for EntropyDevice
impl Unpin for EntropyDevice
impl UnwindSafe for EntropyDevice
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