pub struct ViewClipboard {}
Expand description
View-process clipboard methods.
Implementations§
source§impl ViewClipboard
impl ViewClipboard
sourcepub fn read_text(
&self,
) -> Result<Result<Txt, ClipboardError>, ViewProcessOffline>
pub fn read_text( &self, ) -> Result<Result<Txt, ClipboardError>, ViewProcessOffline>
Read ClipboardType::Text
.
sourcepub fn write_text(
&self,
txt: Txt,
) -> Result<Result<(), ClipboardError>, ViewProcessOffline>
pub fn write_text( &self, txt: Txt, ) -> Result<Result<(), ClipboardError>, ViewProcessOffline>
Write ClipboardType::Text
.
sourcepub fn read_image(
&self,
) -> Result<Result<ViewImage, ClipboardError>, ViewProcessOffline>
pub fn read_image( &self, ) -> Result<Result<ViewImage, ClipboardError>, ViewProcessOffline>
Read ClipboardType::Image
.
sourcepub fn write_image(
&self,
img: &ViewImage,
) -> Result<Result<(), ClipboardError>, ViewProcessOffline>
pub fn write_image( &self, img: &ViewImage, ) -> Result<Result<(), ClipboardError>, ViewProcessOffline>
Write ClipboardType::Image
.
sourcepub fn read_file_list(
&self,
) -> Result<Result<Vec<PathBuf>, ClipboardError>, ViewProcessOffline>
pub fn read_file_list( &self, ) -> Result<Result<Vec<PathBuf>, ClipboardError>, ViewProcessOffline>
Read ClipboardType::FileList
.
sourcepub fn write_file_list(
&self,
list: Vec<PathBuf>,
) -> Result<Result<(), ClipboardError>, ViewProcessOffline>
pub fn write_file_list( &self, list: Vec<PathBuf>, ) -> Result<Result<(), ClipboardError>, ViewProcessOffline>
Write ClipboardType::FileList
.
sourcepub fn read_extension(
&self,
data_type: Txt,
) -> Result<Result<IpcBytes, ClipboardError>, ViewProcessOffline>
pub fn read_extension( &self, data_type: Txt, ) -> Result<Result<IpcBytes, ClipboardError>, ViewProcessOffline>
Read ClipboardType::Extension
.
sourcepub fn write_extension(
&self,
data_type: Txt,
data: IpcBytes,
) -> Result<Result<(), ClipboardError>, ViewProcessOffline>
pub fn write_extension( &self, data_type: Txt, data: IpcBytes, ) -> Result<Result<(), ClipboardError>, ViewProcessOffline>
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 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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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