pub struct VirtIORng<H: Hal, T: Transport> { /* private fields */ }Expand description
Driver for a VirtIO random number generator device.
Implementations§
Source§impl<H: Hal, T: Transport> VirtIORng<H, T>
impl<H: Hal, T: Transport> VirtIORng<H, T>
Sourcepub fn request_entropy(&mut self, dst: &mut [u8]) -> Result<usize>
pub fn request_entropy(&mut self, dst: &mut [u8]) -> Result<usize>
Request random bytes from the device to be stored into dst.
Sourcepub fn enable_interrupts(&mut self)
pub fn enable_interrupts(&mut self)
Enable interrupts.
Sourcepub fn disable_interrupts(&mut self)
pub fn disable_interrupts(&mut self)
Disable interrupts.
Sourcepub fn ack_interrupt(&mut self) -> InterruptStatus
pub fn ack_interrupt(&mut self) -> InterruptStatus
Acknowledge interrupt.
Trait Implementations§
Auto Trait Implementations§
impl<H, T> Freeze for VirtIORng<H, T>where
T: Freeze,
impl<H, T> RefUnwindSafe for VirtIORng<H, T>where
T: RefUnwindSafe,
H: RefUnwindSafe,
impl<H, T> Send for VirtIORng<H, T>where
T: Send,
impl<H, T> Sync for VirtIORng<H, T>where
T: Sync,
impl<H, T> Unpin for VirtIORng<H, T>where
T: Unpin,
H: Unpin,
impl<H, T> UnsafeUnpin for VirtIORng<H, T>where
T: UnsafeUnpin,
impl<H, T> UnwindSafe for VirtIORng<H, T>where
T: UnwindSafe,
H: UnwindSafe,
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more