Trait smithay_clipboard::mime::AllowedMimeTypes

source ·
pub trait AllowedMimeTypes: TryFrom<(Vec<u8>, MimeType)> {
    // Required method
    fn allowed() -> Cow<'static, [MimeType]>;
}
Expand description

Describes the mime types which are accepted.

Required Methods§

source

fn allowed() -> Cow<'static, [MimeType]>

List allowed mime types for the type to convert from a byte slice.

Allowed mime types should be listed in order of decreasing preference, most preferred first.

Object Safety§

This trait is not object safe.

Implementors§