1
0
Fork 0
mirror of https://github.com/sile/hls_m3u8.git synced 2024-06-08 16:29:27 +00:00
hls_m3u8/src/error.rs
2018-02-14 12:00:41 +09:00

15 lines
426 B
Rust

use trackable::error::{ErrorKind as TrackableErrorKind, TrackableError};
/// This crate specific `Error` type.
#[derive(Debug, Clone)]
pub struct Error(TrackableError<ErrorKind>);
derive_traits_for_trackable_error_newtype!(Error, ErrorKind);
/// Possible error kinds.
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[allow(missing_docs)]
pub enum ErrorKind {
InvalidInput,
}
impl TrackableErrorKind for ErrorKind {}