Struct leptos_use::UseClipboardReturn
source · pub struct UseClipboardReturn<CopyFn>{
pub is_supported: Signal<bool>,
pub text: Signal<Option<String>>,
pub copied: Signal<bool>,
pub copy: CopyFn,
}
Expand description
Return type of use_clipboard
.
Fields§
§is_supported: Signal<bool>
Whether the Clipboard API is supported.
text: Signal<Option<String>>
The current state of the clipboard.
copied: Signal<bool>
true
for UseClipboardOptions::copied_reset_delay
milliseconds after copying.
copy: CopyFn
Copy the given text to the clipboard.
Auto Trait Implementations§
impl<CopyFn> Freeze for UseClipboardReturn<CopyFn>where
CopyFn: Freeze,
impl<CopyFn> !RefUnwindSafe for UseClipboardReturn<CopyFn>
impl<CopyFn> !Send for UseClipboardReturn<CopyFn>
impl<CopyFn> !Sync for UseClipboardReturn<CopyFn>
impl<CopyFn> Unpin for UseClipboardReturn<CopyFn>where
CopyFn: Unpin,
impl<CopyFn> !UnwindSafe for UseClipboardReturn<CopyFn>
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