#[non_exhaustive]pub enum DownloadFormat {
Jpeg {
quality: u8,
},
Png,
Raw,
}Expand description
Format for downloading textures with CommandFrame::download_texture.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Jpeg
JPEG format.
Png
PNG format.
Raw
Raw format.
This will be 4 bytes of little-endian width, 4 bytes of little-endian height, the literal byte 3, then width × height × 3 bytes of RGB888 data. (Currently only 3 channels is supported).
Trait Implementations§
Source§impl Clone for DownloadFormat
impl Clone for DownloadFormat
impl Copy for DownloadFormat
Auto Trait Implementations§
impl Freeze for DownloadFormat
impl RefUnwindSafe for DownloadFormat
impl Send for DownloadFormat
impl Sync for DownloadFormat
impl Unpin for DownloadFormat
impl UnsafeUnpin for DownloadFormat
impl UnwindSafe for DownloadFormat
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