[][src]Enum wl_clipboard_rs::paste::MimeType

pub enum MimeType<'a> {
    Any,
    Text,
    TextWithPriority(&'a str),
    Specific(&'a str),
}

MIME types that can be requested from the clipboard.

Variants

Any

Request any available MIME type.

If multiple MIME types are offered, the requested MIME type is unspecified and depends on the order they are received from the Wayland compositor. However, plain text formats are prioritized, so if a plain text format is available among others then it will be requested.

Text

Request a plain text MIME type.

This will request one of the multiple common plain text MIME types. It will prioritize MIME types known to return UTF-8 text.

TextWithPriority(&'a str)

Request the given MIME type, and if it's not available fall back to MimeType::Text.

Example use-case: pasting text/html should try text/html first, but if it's not available, any other plain text format will do fine too.

Specific(&'a str)

Request a specific MIME type.

Trait Implementations

impl<'a> Clone for MimeType<'a>[src]

impl<'a> Copy for MimeType<'a>[src]

impl<'a> Debug for MimeType<'a>[src]

impl<'a> Eq for MimeType<'a>[src]

impl<'a> Hash for MimeType<'a>[src]

impl<'a> Ord for MimeType<'a>[src]

impl<'a> PartialEq<MimeType<'a>> for MimeType<'a>[src]

impl<'a> PartialOrd<MimeType<'a>> for MimeType<'a>[src]

impl<'a> StructuralEq for MimeType<'a>[src]

impl<'a> StructuralPartialEq for MimeType<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for MimeType<'a>

impl<'a> Send for MimeType<'a>

impl<'a> Sync for MimeType<'a>

impl<'a> Unpin for MimeType<'a>

impl<'a> UnwindSafe for MimeType<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<N> NodeTrait for N where
    N: Copy + Ord + Hash
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,