webdav_request/client/
inner.rs

1type Username = String;
2type Password = String;
3#[derive(Clone, Default)]
4pub struct InnerClient {
5    pub(crate) auth: Option<(Username, Password)>,
6    pub(crate) inner: reqwest::Client,
7}
8
9impl InnerClient {
10    pub fn new(username: &str, password: &str) -> Result<Self, reqwest::Error> {
11        Ok(Self {
12            auth: Some((username.to_owned(), password.to_owned())),
13            inner: reqwest::Client::builder().build()?,
14        })
15    }
16}
17
18unsafe impl Send for InnerClient {}
19
20unsafe impl Sync for InnerClient {}