pub trait PetriVmFramebufferAccess: Send + 'static {
// Required method
fn screenshot<'life0, 'life1, 'async_trait>(
&'life0 mut self,
image: &'life1 mut Vec<u8>,
) -> Pin<Box<dyn Future<Output = Result<Option<VmScreenshotMeta>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}
Expand description
Interface for getting screenshots of the VM
Required Methods§
Sourcefn screenshot<'life0, 'life1, 'async_trait>(
&'life0 mut self,
image: &'life1 mut Vec<u8>,
) -> Pin<Box<dyn Future<Output = Result<Option<VmScreenshotMeta>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn screenshot<'life0, 'life1, 'async_trait>(
&'life0 mut self,
image: &'life1 mut Vec<u8>,
) -> Pin<Box<dyn Future<Output = Result<Option<VmScreenshotMeta>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Populates the provided buffer with a screenshot of the VM, returning the dimensions and color type.