fret-platform 0.1.0

Platform-agnostic windowing and input contracts for Fret runners.
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! Clipboard contracts.
//!
//! This module intentionally models only the portable data boundary.

pub type ClipboardErrorKind = fret_core::ClipboardAccessErrorKind;
pub type ClipboardError = fret_core::ClipboardAccessError;

pub trait Clipboard {
    fn set_text(&mut self, text: &str) -> Result<(), ClipboardError>;
    fn get_text(&mut self) -> Result<Option<String>, ClipboardError>;
}