[−][src]Struct duplicati::client::Client
Implementations
impl Client
[src]
pub async fn new<'_, '_>(
host: &'_ str,
port: u16,
tls: bool,
password: &'_ str,
cookie_save_path: Option<impl AsRef<Path>>
) -> Result<Self, Box<dyn Error>>
[src]
host: &'_ str,
port: u16,
tls: bool,
password: &'_ str,
cookie_save_path: Option<impl AsRef<Path>>
) -> Result<Self, Box<dyn Error>>
pub fn get(&self, path: impl AsRef<str>) -> RequestBuilder
[src]
pub async fn get_short<'_>(
&'_ self,
path: impl AsRef<str>
) -> Result<Response, Box<dyn Error>>
[src]
&'_ self,
path: impl AsRef<str>
) -> Result<Response, Box<dyn Error>>
pub fn post(&self, path: impl AsRef<str>) -> RequestBuilder
[src]
pub async fn post_short<T: Serialize + ?Sized, '_, '_>(
&'_ self,
path: impl AsRef<str>,
form: &'_ T
) -> Result<Response, Box<dyn Error>>
[src]
&'_ self,
path: impl AsRef<str>,
form: &'_ T
) -> Result<Response, Box<dyn Error>>
pub async fn check_auth<'_>(&'_ self) -> Result<AuthStatus, Box<dyn Error>>
[src]
pub async fn login<'_, '_>(&'_ mut self) -> Result<(), Box<dyn Error + '_>>
[src]
pub async fn fetch_backups<'_>(
&'_ self
) -> Result<Vec<BackupWrapper>, Box<dyn Error>>
[src]
&'_ self
) -> Result<Vec<BackupWrapper>, Box<dyn Error>>
pub async fn fetch_progress_state<'_>(
&'_ self
) -> Result<Option<ProgressState>, Box<dyn Error>>
[src]
&'_ self
) -> Result<Option<ProgressState>, Box<dyn Error>>
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,