[][src]Struct duplicati::client::Client

pub struct Client { /* fields omitted */ }

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]

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]

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]

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]

pub async fn fetch_progress_state<'_>(
    &'_ self
) -> Result<Option<ProgressState>, Box<dyn Error>>
[src]

Trait Implementations

impl Drop for Client[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.