pub enum MediaType {
Png,
Jpeg,
Gif,
Svg,
Webp,
}Expand description
Image media type for IMAGE blocks.
Identifies the image encoding so the decoder knows how to handle
the raw bytes in the data field.
┌──────┬──────┐
│ Wire │ Type │
├──────┼──────┤
│ 0x01 │ Png │
│ 0x02 │ Jpeg │
│ 0x03 │ Gif │
│ 0x04 │ Svg │
│ 0x05 │ Webp │
└──────┴──────┘Variants§
Implementations§
Trait Implementations§
impl Copy for MediaType
impl Eq for MediaType
impl StructuralPartialEq for MediaType
Auto Trait Implementations§
impl Freeze for MediaType
impl RefUnwindSafe for MediaType
impl Send for MediaType
impl Sync for MediaType
impl Unpin for MediaType
impl UnsafeUnpin for MediaType
impl UnwindSafe for MediaType
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