pub struct ClipboardCheckState {
pub image_hash: Option<u64>,
pub last_checked: Option<Instant>,
}Expand description
Memoised result of the most recent clipboard probe. The hash is a
content fingerprint of the clipboard image’s raw RGBA bytes (or
None when the clipboard holds no image). Letting build_status
compare this against UiState::pending_image_hashes is what powers
the “hide hint after I already pasted THIS image, but show it again
if the user copies a different one” UX.
Fields§
§image_hash: Option<u64>§last_checked: Option<Instant>Trait Implementations§
Source§impl Debug for ClipboardCheckState
impl Debug for ClipboardCheckState
Source§impl Default for ClipboardCheckState
impl Default for ClipboardCheckState
Source§fn default() -> ClipboardCheckState
fn default() -> ClipboardCheckState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ClipboardCheckState
impl RefUnwindSafe for ClipboardCheckState
impl Send for ClipboardCheckState
impl Sync for ClipboardCheckState
impl Unpin for ClipboardCheckState
impl UnsafeUnpin for ClipboardCheckState
impl UnwindSafe for ClipboardCheckState
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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