pub struct SharedThumbnailLookupRequest { /* private fields */ }Expand description
Owned shared-repository lookup request for async or runtime-specific adapters.
Constructing this request does not perform filesystem I/O. Validation happens only when
Self::lookup_path, Self::lookup_png_bytes, or Self::lookup_rgba8 is called.
Implementations§
Sourcepub fn new(
context: SharedRepositoryContext,
original_facts: SharedOriginalFacts,
size: ThumbnailSize,
) -> Self
pub fn new( context: SharedRepositoryContext, original_facts: SharedOriginalFacts, size: ThumbnailSize, ) -> Self
Creates an owned shared-repository lookup request.
Sourcepub fn lookup_path(
self,
) -> Result<SharedThumbnailLookup<ThumbnailPathLookupEntry>>
pub fn lookup_path( self, ) -> Result<SharedThumbnailLookup<ThumbnailPathLookupEntry>>
Returns a validated shared-repository path for the owned request.
§Errors
Returns the same errors as SharedRepositoryContext::lookup_thumbnail_path.
Sourcepub fn lookup_png_bytes(
self,
) -> Result<SharedThumbnailLookup<ThumbnailPngBytesLookupEntry>>
pub fn lookup_png_bytes( self, ) -> Result<SharedThumbnailLookup<ThumbnailPngBytesLookupEntry>>
Returns exact validated shared-repository PNG bytes for the owned request.
§Errors
Returns the same errors as SharedRepositoryContext::lookup_thumbnail_png_bytes.
Sourcepub fn lookup_rgba8(
self,
) -> Result<SharedThumbnailLookup<ThumbnailRgba8LookupEntry>>
pub fn lookup_rgba8( self, ) -> Result<SharedThumbnailLookup<ThumbnailRgba8LookupEntry>>
Returns decoded tightly packed RGBA8 pixels for the owned request.
§Errors
Returns the same errors as SharedRepositoryContext::lookup_thumbnail_rgba8.
Sourcepub fn lookup_display_rgba8(
self,
) -> Result<SharedThumbnailLookup<DisplayThumbnailRgba8LookupEntry>>
pub fn lookup_display_rgba8( self, ) -> Result<SharedThumbnailLookup<DisplayThumbnailRgba8LookupEntry>>
Returns decoded display RGBA8 pixels for the owned request.
§Errors
Returns the same errors as SharedRepositoryContext::lookup_display_thumbnail_rgba8.
Sourcepub fn into_parts(self) -> SharedThumbnailLookupRequestParts
pub fn into_parts(self) -> SharedThumbnailLookupRequestParts
Splits this request into its owned parts.
Trait Implementations§
Source§fn clone(&self) -> SharedThumbnailLookupRequest
fn clone(&self) -> SharedThumbnailLookupRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§fn eq(&self, other: &SharedThumbnailLookupRequest) -> bool
fn eq(&self, other: &SharedThumbnailLookupRequest) -> bool
self and other values to be equal, and is used by ==.Auto Trait Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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