blob: 3545c16cb5ba522c78d241e35aa52a9a58358c27 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
use std::io;
use thiserror::Error;
/// Any pppoe2 or library error.
#[derive(Debug, Error)]
pub enum Error {
#[error("io: {0}")]
Io(#[from] io::Error),
#[error("ppproperly: {0}")]
Ppproperly(#[from] ppproperly::Error),
#[error("rsdsl_pppoe2_sys: {0}")]
RsdslPppoe2Sys(#[from] rsdsl_pppoe2_sys::Error),
}
pub type Result<T> = std::result::Result<T, Error>;
|