[][src]Struct etebase::Client

pub struct Client { /* fields omitted */ }

The network client to use to interact with the Etebase server

This is in charge of actually connecting to the server and making network requests. Depending on your configuration this can be overridden and replaced with a completely different implementation.

Implementations

impl Client[src]

pub fn new(client_name: &str, server_url: &str) -> Result<Self>[src]

Return a new client object

The client object manages the connection to the Etebase server

Arguments:

  • client_name - a string identifier for the client
  • server_url - the Etebase server URL

pub fn set_server_url(&mut self, server_url: &str) -> Result<()>[src]

Set the server url associated with this client

pub fn server_url(&self) -> &Url[src]

Return the server url associated with this client

Trait Implementations

impl Clone for Client[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.