pub struct Cover<'a> {
pub bytes: &'a [u8],
pub mime: &'a str,
}Expand description
An embedded cover image: its raw bytes paired with its MIME type. The MIME
travels with the bytes so the executor can embed an animated image/webp
where the container allows it (FLAC within its size cap, MP3, WAV) or a
static image/jpeg otherwise.
Fields§
§bytes: &'a [u8]§mime: &'a strImplementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Cover<'a>
impl<'a> RefUnwindSafe for Cover<'a>
impl<'a> Send for Cover<'a>
impl<'a> Sync for Cover<'a>
impl<'a> Unpin for Cover<'a>
impl<'a> UnsafeUnpin for Cover<'a>
impl<'a> UnwindSafe for Cover<'a>
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