pub struct PersonalThumbnailRawInstallRequest { /* private fields */ }Expand description
Owned personal-cache raw install request for async or runtime-specific adapters.
Constructing this request does not perform filesystem I/O. Raw conversion, normalization, and
installation happen only when Self::install_path or Self::install_png_bytes is called.
Implementations§
Source§impl PersonalThumbnailRawInstallRequest
impl PersonalThumbnailRawInstallRequest
Sourcepub fn new(
root: PersonalCacheRoot,
original: ReadablePersonalOriginalIdentity,
size: ThumbnailSize,
image: OwnedRawThumbnailImage,
) -> Self
pub fn new( root: PersonalCacheRoot, original: ReadablePersonalOriginalIdentity, size: ThumbnailSize, image: OwnedRawThumbnailImage, ) -> Self
Creates an owned personal-cache raw install request.
Sourcepub fn install_path(self) -> Result<InstalledThumbnailPath>
pub fn install_path(self) -> Result<InstalledThumbnailPath>
Normalizes raw pixel data, installs a personal-cache thumbnail, and returns its path.
§Errors
Returns the same errors as PersonalCacheRoot::install_raw_thumbnail_returning_path.
Sourcepub fn install_png_bytes(self) -> Result<InstalledThumbnailPngBytes>
pub fn install_png_bytes(self) -> Result<InstalledThumbnailPngBytes>
Normalizes raw pixel data, installs a personal-cache thumbnail, and returns final PNG bytes.
§Errors
Returns the same errors as PersonalCacheRoot::install_raw_thumbnail_returning_png_bytes.
Sourcepub fn into_parts(self) -> PersonalThumbnailRawInstallRequestParts
pub fn into_parts(self) -> PersonalThumbnailRawInstallRequestParts
Splits this request into its owned parts.
Trait Implementations§
Source§impl PartialEq for PersonalThumbnailRawInstallRequest
impl PartialEq for PersonalThumbnailRawInstallRequest
Source§fn eq(&self, other: &PersonalThumbnailRawInstallRequest) -> bool
fn eq(&self, other: &PersonalThumbnailRawInstallRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PersonalThumbnailRawInstallRequest
impl StructuralPartialEq for PersonalThumbnailRawInstallRequest
Auto Trait Implementations§
impl Freeze for PersonalThumbnailRawInstallRequest
impl RefUnwindSafe for PersonalThumbnailRawInstallRequest
impl Send for PersonalThumbnailRawInstallRequest
impl Sync for PersonalThumbnailRawInstallRequest
impl Unpin for PersonalThumbnailRawInstallRequest
impl UnsafeUnpin for PersonalThumbnailRawInstallRequest
impl UnwindSafe for PersonalThumbnailRawInstallRequest
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more