pub struct FailureEntryWriteRequest { /* private fields */ }Expand description
Owned failure-entry write request for async or runtime-specific adapters.
Constructing this request does not perform filesystem I/O. The failure entry is written only
when Self::write_path or Self::write_png_bytes is called.
Implementations§
Source§impl FailureEntryWriteRequest
impl FailureEntryWriteRequest
Sourcepub fn new(
root: PersonalCacheRoot,
original: ReadablePersonalOriginalIdentity,
namespace: FailureNamespace,
) -> Self
pub fn new( root: PersonalCacheRoot, original: ReadablePersonalOriginalIdentity, namespace: FailureNamespace, ) -> Self
Creates an owned failure-entry write request.
Sourcepub fn write_path(self) -> Result<InstalledThumbnailPath>
pub fn write_path(self) -> Result<InstalledThumbnailPath>
Writes a deterministic 1x1 transparent failure entry and returns its path.
§Errors
Returns the same errors as PersonalCacheRoot::write_failure_entry_returning_path.
Sourcepub fn write_png_bytes(self) -> Result<InstalledThumbnailPngBytes>
pub fn write_png_bytes(self) -> Result<InstalledThumbnailPngBytes>
Writes a deterministic 1x1 transparent failure entry and returns final PNG bytes.
§Errors
Returns the same errors as PersonalCacheRoot::write_failure_entry_returning_png_bytes.
Sourcepub fn into_parts(self) -> FailureEntryWriteRequestParts
pub fn into_parts(self) -> FailureEntryWriteRequestParts
Splits this request into its owned parts.
Trait Implementations§
Source§impl Clone for FailureEntryWriteRequest
impl Clone for FailureEntryWriteRequest
Source§fn clone(&self) -> FailureEntryWriteRequest
fn clone(&self) -> FailureEntryWriteRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FailureEntryWriteRequest
impl Debug for FailureEntryWriteRequest
Source§impl PartialEq for FailureEntryWriteRequest
impl PartialEq for FailureEntryWriteRequest
Source§fn eq(&self, other: &FailureEntryWriteRequest) -> bool
fn eq(&self, other: &FailureEntryWriteRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for FailureEntryWriteRequest
impl StructuralPartialEq for FailureEntryWriteRequest
Auto Trait Implementations§
impl Freeze for FailureEntryWriteRequest
impl RefUnwindSafe for FailureEntryWriteRequest
impl Send for FailureEntryWriteRequest
impl Sync for FailureEntryWriteRequest
impl Unpin for FailureEntryWriteRequest
impl UnsafeUnpin for FailureEntryWriteRequest
impl UnwindSafe for FailureEntryWriteRequest
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> 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>
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