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
12
13
14
15
16
//! Open-url platform contracts.

#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum OpenUrlErrorKind {
    Unsupported,
    BackendError,
}

#[derive(Debug, Clone, PartialEq, Eq)]
pub struct OpenUrlError {
    pub kind: OpenUrlErrorKind,
}

pub trait OpenUrl {
    fn open_url(&mut self, url: &str) -> Result<(), OpenUrlError>;
}