pub(crate) struct Clipboard {
inner: Arc<Inner>,
}
Fields§
§inner: Arc<Inner>
Implementations§
source§impl Clipboard
impl Clipboard
pub(crate) fn new() -> Result<Self, Error>
pub(crate) fn get_text( &self, selection: LinuxClipboardKind, ) -> Result<String, Error>
pub(crate) fn set_text( &self, message: Cow<'_, str>, selection: LinuxClipboardKind, wait: bool, ) -> Result<(), Error>
pub(crate) fn set_html( &self, html: Cow<'_, str>, alt: Option<Cow<'_, str>>, selection: LinuxClipboardKind, wait: bool, ) -> Result<(), Error>
pub(crate) fn get_image( &self, selection: LinuxClipboardKind, ) -> Result<ImageData<'static>, Error>
pub(crate) fn set_image( &self, image: ImageData<'_>, selection: LinuxClipboardKind, wait: bool, ) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Clipboard
impl !RefUnwindSafe for Clipboard
impl Send for Clipboard
impl Sync for Clipboard
impl Unpin for Clipboard
impl !UnwindSafe for Clipboard
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> 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