pub struct ClipboardCopy { /* private fields */ }Expand description
The outcome of a ClipboardBackend::copy: copied, failed, or not
known yet. It settles exactly once, and settling wakes the app that
started the copy, so the app reads it on its next pass through its event
loop.
Implementations§
Source§impl ClipboardCopy
impl ClipboardCopy
pub fn settled(copied: bool) -> ClipboardCopy
pub fn pending() -> (ClipboardCopy, CopySettler)
pub fn outcome(&self) -> Option<bool>
pub fn on_settled(&self, then: impl FnOnce(bool) + Send + 'static)
Trait Implementations§
Source§impl Clone for ClipboardCopy
impl Clone for ClipboardCopy
Source§fn clone(&self) -> ClipboardCopy
fn clone(&self) -> ClipboardCopy
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 moreAuto Trait Implementations§
impl Forget for ClipboardCopy
impl Freeze for ClipboardCopy
impl Move for ClipboardCopy
impl RefUnwindSafe for ClipboardCopy
impl Send for ClipboardCopy
impl Sync for ClipboardCopy
impl Unpin for ClipboardCopy
impl UnsafeUnpin for ClipboardCopy
impl UnwindSafe for ClipboardCopy
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> 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