pub enum MediaKind {
Text,
File,
Uri,
Data,
Any,
}Expand description
A type of media that registered into clipboard or DND system. Text, File, Uri is designed for simple implementation. For programs that wants to send custom MIME, use Data. Cannot support multiple kind of data at the moment.
Variants§
Text
A regular text
File
A file path (can be multiple, \n separated)
Uri
A URI path (HTTP or internal identifier)
Data
A data URI
Any
Do not use
Implementations§
Trait Implementations§
impl Copy for MediaKind
Auto Trait Implementations§
impl Freeze for MediaKind
impl RefUnwindSafe for MediaKind
impl Send for MediaKind
impl Sync for MediaKind
impl Unpin for MediaKind
impl UnsafeUnpin for MediaKind
impl UnwindSafe for MediaKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more