webdav_request/client/
inner.rs

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

type Username = String;
type Password = String;
#[derive(Clone, Default)]
pub struct InnerClient {
    pub(crate) auth: Option<(Username, Password)>,
    pub(crate) inner: reqwest::Client,
}

impl InnerClient {
    pub fn new(username: &str, password: &str) -> Result<Self, reqwest::Error>  {
        Ok(Self {
            auth: Some((username.to_owned(), password.to_owned())),
            inner: reqwest::Client::builder().build()?,
        })
    }
}

unsafe impl Send for InnerClient {
    
}

unsafe impl Sync for InnerClient {
    
}