#[non_exhaustive]pub struct ViewClipboard {}Expand description
View-process clipboard methods.
Implementations§
Source§impl ViewClipboard
impl ViewClipboard
Sourcepub fn read_text(&self) -> Result<Result<Txt, ClipboardError>, ChannelError>
pub fn read_text(&self) -> Result<Result<Txt, ClipboardError>, ChannelError>
Read ClipboardType::Text.
Sourcepub fn write_text(
&self,
txt: Txt,
) -> Result<Result<(), ClipboardError>, ChannelError>
pub fn write_text( &self, txt: Txt, ) -> Result<Result<(), ClipboardError>, ChannelError>
Write ClipboardType::Text.
Sourcepub fn read_image(
&self,
) -> Result<Result<ViewImageHandle, ClipboardError>, ChannelError>
pub fn read_image( &self, ) -> Result<Result<ViewImageHandle, ClipboardError>, ChannelError>
Read ClipboardType::Image.
Sourcepub fn write_image(
&self,
img: &ViewImageHandle,
) -> Result<Result<(), ClipboardError>, ChannelError>
pub fn write_image( &self, img: &ViewImageHandle, ) -> Result<Result<(), ClipboardError>, ChannelError>
Write ClipboardType::Image.
Sourcepub fn read_paths(
&self,
) -> Result<Result<Vec<PathBuf>, ClipboardError>, ChannelError>
pub fn read_paths( &self, ) -> Result<Result<Vec<PathBuf>, ClipboardError>, ChannelError>
Read ClipboardType::Paths.
Sourcepub fn write_paths(
&self,
list: Vec<PathBuf>,
) -> Result<Result<(), ClipboardError>, ChannelError>
pub fn write_paths( &self, list: Vec<PathBuf>, ) -> Result<Result<(), ClipboardError>, ChannelError>
Write ClipboardType::Paths.
Sourcepub fn read_extension(
&self,
data_type: Txt,
) -> Result<Result<IpcBytes, ClipboardError>, ChannelError>
pub fn read_extension( &self, data_type: Txt, ) -> Result<Result<IpcBytes, ClipboardError>, ChannelError>
Read ClipboardType::Extension.
Sourcepub fn write_extension(
&self,
data_type: Txt,
data: IpcBytes,
) -> Result<Result<(), ClipboardError>, ChannelError>
pub fn write_extension( &self, data_type: Txt, data: IpcBytes, ) -> Result<Result<(), ClipboardError>, ChannelError>
Write ClipboardType::Extension.
Auto Trait Implementations§
impl Freeze for ViewClipboard
impl RefUnwindSafe for ViewClipboard
impl Send for ViewClipboard
impl Sync for ViewClipboard
impl Unpin for ViewClipboard
impl UnsafeUnpin for ViewClipboard
impl UnwindSafe for ViewClipboard
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