pub(crate) struct Set<'clipboard> {
clipboard: &'clipboard mut Clipboard,
wait: WaitConfig,
selection: LinuxClipboardKind,
exclude_from_history: bool,
}Fields§
§clipboard: &'clipboard mut Clipboard§wait: WaitConfig§selection: LinuxClipboardKind§exclude_from_history: boolImplementations§
Source§impl<'clipboard> Set<'clipboard>
impl<'clipboard> Set<'clipboard>
pub(crate) fn new(clipboard: &'clipboard mut Clipboard) -> Self
pub(crate) fn text(self, text: Cow<'_, str>) -> Result<(), Error>
pub(crate) fn html( self, html: Cow<'_, str>, alt: Option<Cow<'_, str>>, ) -> Result<(), Error>
pub(crate) fn image(self, image: ImageData<'_>) -> Result<(), Error>
pub(crate) fn file_list( self, file_list: &[impl AsRef<Path>], ) -> Result<(), Error>
Auto Trait Implementations§
impl<'clipboard> Freeze for Set<'clipboard>
impl<'clipboard> !RefUnwindSafe for Set<'clipboard>
impl<'clipboard> Send for Set<'clipboard>
impl<'clipboard> Sync for Set<'clipboard>
impl<'clipboard> Unpin for Set<'clipboard>
impl<'clipboard> !UnwindSafe for Set<'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