pub(crate) struct Clipboard {
    inner: Arc<Inner>,
}Fields§
§inner: Arc<Inner>Implementations§
Source§impl Clipboard
 
impl Clipboard
pub(crate) fn new() -> Result<Self, Error>
fn add_clipboard_exclusions( &self, exclude_from_history: bool, data: &mut Vec<ClipboardData>, )
pub(crate) fn clear(&self, selection: LinuxClipboardKind) -> Result<(), Error>
pub(crate) fn get_text( &self, selection: LinuxClipboardKind, ) -> Result<String, Error>
pub(crate) fn set_text( &self, message: Cow<'_, str>, selection: LinuxClipboardKind, wait: WaitConfig, exclude_from_history: bool, ) -> Result<(), Error>
pub(crate) fn get_html( &self, selection: LinuxClipboardKind, ) -> Result<String, Error>
pub(crate) fn set_html( &self, html: Cow<'_, str>, alt: Option<Cow<'_, str>>, selection: LinuxClipboardKind, wait: WaitConfig, exclude_from_history: 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: WaitConfig, exclude_from_history: bool, ) -> Result<(), Error>
pub(crate) fn get_file_list( &self, selection: LinuxClipboardKind, ) -> Result<Vec<PathBuf>, Error>
pub(crate) fn set_file_list( &self, file_list: &[impl AsRef<Path>], selection: LinuxClipboardKind, wait: WaitConfig, exclude_from_history: 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