pub struct CopyOperation {
pub content: String,
pub feedback: Option<CopyFeedback>,
pub feedback_duration: u32,
pub feedback_frame: u32,
}Expand description
Copy operation state
Fields§
§content: StringContent being copied
feedback: Option<CopyFeedback>Copy feedback
feedback_duration: u32Feedback display duration in frames
feedback_frame: u32Current feedback frame counter
Implementations§
Source§impl CopyOperation
impl CopyOperation
Sourcepub fn execute(&mut self) -> Result<(), ClipboardError>
pub fn execute(&mut self) -> Result<(), ClipboardError>
Execute the copy operation
Sourcepub fn update_feedback(&mut self)
pub fn update_feedback(&mut self)
Update feedback animation
Sourcepub fn is_feedback_visible(&self) -> bool
pub fn is_feedback_visible(&self) -> bool
Check if feedback is visible
Sourcepub fn get_feedback(&self) -> Option<CopyFeedback>
pub fn get_feedback(&self) -> Option<CopyFeedback>
Get current feedback
Sourcepub fn feedback_progress(&self) -> f32
pub fn feedback_progress(&self) -> f32
Get feedback progress (0.0 to 1.0)
Trait Implementations§
Source§impl Clone for CopyOperation
impl Clone for CopyOperation
Source§fn clone(&self) -> CopyOperation
fn clone(&self) -> CopyOperation
Returns a duplicate of the value. Read more
1.0.0 · 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 Freeze for CopyOperation
impl RefUnwindSafe for CopyOperation
impl Send for CopyOperation
impl Sync for CopyOperation
impl Unpin for CopyOperation
impl UnwindSafe for CopyOperation
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