Struct windows::ApplicationModel::DataTransfer::Clipboard

pub struct Clipboard;

Implementations§

§

impl Clipboard

pub fn GetContent() -> Result<DataPackageView>

pub fn SetContent<P0>(content: P0) -> Result<()>
where P0: Param<DataPackage>,

pub fn Flush() -> Result<()>

pub fn Clear() -> Result<()>

pub fn ContentChanged<P0>(handler: P0) -> Result<EventRegistrationToken>
where P0: Param<EventHandler<IInspectable>>,

pub fn RemoveContentChanged(token: EventRegistrationToken) -> Result<()>

pub fn GetHistoryItemsAsync() -> Result<IAsyncOperation<ClipboardHistoryItemsResult>>

pub fn ClearHistory() -> Result<bool>

pub fn DeleteItemFromHistory<P0>(item: P0) -> Result<bool>
where P0: Param<ClipboardHistoryItem>,

pub fn SetHistoryItemAsContent<P0>( item: P0, ) -> Result<SetHistoryItemAsContentStatus>
where P0: Param<ClipboardHistoryItem>,

pub fn IsHistoryEnabled() -> Result<bool>

pub fn IsRoamingEnabled() -> Result<bool>

pub fn SetContentWithOptions<P0, P1>(content: P0, options: P1) -> Result<bool>
where P0: Param<DataPackage>, P1: Param<ClipboardContentOptions>,

pub fn HistoryChanged<P0>(handler: P0) -> Result<EventRegistrationToken>

pub fn RemoveHistoryChanged(token: EventRegistrationToken) -> Result<()>

pub fn RoamingEnabledChanged<P0>(handler: P0) -> Result<EventRegistrationToken>
where P0: Param<EventHandler<IInspectable>>,

pub fn RemoveRoamingEnabledChanged(token: EventRegistrationToken) -> Result<()>

pub fn HistoryEnabledChanged<P0>(handler: P0) -> Result<EventRegistrationToken>
where P0: Param<EventHandler<IInspectable>>,

pub fn RemoveHistoryEnabledChanged(token: EventRegistrationToken) -> Result<()>

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.