(kind: Kind, image: DynamicImage)
| 60 | #[cfg(feature = "async")] |
| 61 | #[cfg_attr(docsrs, doc(cfg(feature = "async")))] |
| 62 | pub fn convert_image_async(kind: Kind, image: DynamicImage) -> Result<Vec<u8>, StreamDeckError> { |
| 63 | Ok(tokio::task::block_in_place(move || convert_image(kind, image))?) |
| 64 | } |
| 65 | |
| 66 | /// Converts image into image data depending on provided image format, can be safely ran inside [multi_thread](tokio::runtime::Builder::new_multi_thread) runtime |
| 67 | #[cfg(feature = "async")] |
no test coverage detected