pub struct UseClipboardOptions { /* private fields */ }
Expand description
Options for use_clipboard_with_options
.
Implementations§
Source§impl UseClipboardOptions
impl UseClipboardOptions
Sourcepub fn read(self, value: bool) -> Self
pub fn read(self, value: bool) -> Self
When true
event handlers are added so that the returned signal text
is updated whenever the clipboard changes.
Defaults to false
.
Please note that clipboard changes are only detected when copying or cutting text inside the same document.
Sourcepub fn copied_reset_delay(self, value: f64) -> Self
pub fn copied_reset_delay(self, value: f64) -> Self
After how many milliseconds after copying should the returned signal copied
be set to false
?
Defaults to 1500.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UseClipboardOptions
impl RefUnwindSafe for UseClipboardOptions
impl Send for UseClipboardOptions
impl Sync for UseClipboardOptions
impl Unpin for UseClipboardOptions
impl UnwindSafe for UseClipboardOptions
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