pub struct Clipboard { /* private fields */ }
Expand description

Clipboard instance, which allows to perform clipboard ops.

Note:

You can have only one such instance across your program.

Warning:

In Windows Clipboard opens globally and only one application can set data onto format at the time.

Therefore as soon as operations are finished, user is advised to close Clipboard.

Implementations§

Attempts to open clipboard, returning clipboard instance on success.

Attempts to open clipboard, associating it with specified owner and returning clipboard instance on success.

Attempts to open clipboard, giving it num retries in case of failure.

Attempts to open clipboard, giving it num retries in case of failure.

Trait Implementations§

Executes the destructor for this type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.