Function wl_clipboard_rs::paste::get_mime_types

source ·
pub fn get_mime_types(
    clipboard: ClipboardType,
    seat: Seat<'_>,
) -> Result<HashSet<String>, Error>
Expand description

Retrieves the offered MIME types.

If seat is None, uses an unspecified seat (it depends on the order returned by the compositor). This is perfectly fine when only a single seat is present, so for most configurations.

§Examples

use wl_clipboard_rs::{paste::{get_mime_types, ClipboardType, Seat}};

let mime_types = get_mime_types(ClipboardType::Regular, Seat::Unspecified)?;
for mime_type in mime_types {
    println!("{}", mime_type);
}