pub struct OpenRequest {
pub encoded: Arc<[u8]>,
pub options: DecodeOptions,
pub device: Device,
}Expand description
OpenRequest is everything a decoder needs to open one image.
Fields§
§encoded: Arc<[u8]>encoded is the complete file. It is shared so a reader can keep it without copying.
options: DecodeOptionsoptions bound the decode and say what size the caller wants.
device: Devicedevice is where a native decoder imports a texture it produced. Software decoders
ignore it.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for OpenRequest
impl !UnwindSafe for OpenRequest
impl Freeze for OpenRequest
impl Send for OpenRequest
impl Sync for OpenRequest
impl Unpin for OpenRequest
impl UnsafeUnpin for OpenRequest
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