1 2 3 4 5 6 7 8 9 10 11 12
use { crate::errors::ClipboardError, }; pub trait Clipboard { fn get_type(&self) -> &'static str; fn get_string(&self) -> Result<String, ClipboardError>; fn set_string(&mut self, s: &str) -> Result<(), ClipboardError>; }