pub(crate) struct Set<'clipboard> {
clipboard: &'clipboard mut Clipboard,
wait: bool,
selection: LinuxClipboardKind,
}
Fields§
§clipboard: &'clipboard mut Clipboard
§wait: bool
§selection: LinuxClipboardKind
Implementations§
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>
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