pub struct UpdateImagePackage { /* private fields */ }
Expand description
An open handle to an image package.
Implementations§
Source§impl UpdateImagePackage
impl UpdateImagePackage
Sourcepub fn new(proxy: DirectoryProxy) -> Self
pub fn new(proxy: DirectoryProxy) -> Self
Creates a new UpdateImagePackage
with a given proxy.
Sourcepub async fn open_image(&self, path: &str) -> Result<Buffer, OpenImageError>
pub async fn open_image(&self, path: &str) -> Result<Buffer, OpenImageError>
Opens the image at given path
as a resizable VMO buffer.
Auto Trait Implementations§
impl Freeze for UpdateImagePackage
impl !RefUnwindSafe for UpdateImagePackage
impl Send for UpdateImagePackage
impl Sync for UpdateImagePackage
impl Unpin for UpdateImagePackage
impl !UnwindSafe for UpdateImagePackage
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