mirror of
https://github.com/sile/hls_m3u8.git
synced 2024-11-15 20:01:01 +00:00
13 lines
344 B
Rust
13 lines
344 B
Rust
|
use trackable::error::{ErrorKind as TrackableErrorKind, TrackableError};
|
||
|
|
||
|
#[derive(Debug, Clone)]
|
||
|
pub struct Error(TrackableError<ErrorKind>);
|
||
|
derive_traits_for_trackable_error_newtype!(Error, ErrorKind);
|
||
|
|
||
|
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||
|
pub enum ErrorKind {
|
||
|
InvalidInput,
|
||
|
Other,
|
||
|
}
|
||
|
impl TrackableErrorKind for ErrorKind {}
|