[−][src]Struct etebase::Client
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 clientserver_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
Auto Trait Implementations
impl !RefUnwindSafe for Client
[src]
impl Send for Client
[src]
impl Sync for Client
[src]
impl Unpin for Client
[src]
impl !UnwindSafe for Client
[src]
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,
pub 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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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>,