1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#[derive(Debug, Clone)]
pub struct PlexApiError {}
impl From<reqwest::Error> for PlexApiError {
fn from(e: reqwest::Error) -> Self {
eprintln!("{:#?}", e);
Self {}
}
}
impl From<serde_xml_rs::Error> for PlexApiError {
fn from(e: serde_xml_rs::Error) -> Self {
eprintln!("{:#?}", e);
Self {}
}
}
impl From<std::sync::PoisonError<std::sync::RwLockReadGuard<'_, reqwest::Client>>>
for PlexApiError
{
fn from(e: std::sync::PoisonError<std::sync::RwLockReadGuard<'_, reqwest::Client>>) -> Self {
eprintln!("{:#?}", e);
Self {}
}
}
impl From<serde_json::Error> for PlexApiError {
fn from(e: serde_json::Error) -> Self {
println!("{:#?}", e);
Self {}
}
}
impl From<url::ParseError> for PlexApiError {
fn from(e: url::ParseError) -> Self {
println!("{:#?}", e);
Self {}
}
}