[][src]Struct safe_authenticator::AuthClient

pub struct AuthClient { /* fields omitted */ }

Client object used by safe_authenticator.

Methods

impl AuthClient[src]

pub fn config_root_dir(&self) -> MDataInfo[src]

Get Maidsafe specific configuration's Root Directory ID if available in account packet used for current login.

pub fn set_config_root_dir(&self, dir: MDataInfo) -> bool[src]

Replaces the config root reference in the account packet. Returns false if it wasn't updated. Doesn't actually modify the session packet - you should call update_account_packet afterwards to actually update it on the network.

pub fn access_container(&self) -> MDataInfo[src]

Get User's Access Container if available in account packet used for current login

pub fn set_access_container(&self, dir: MDataInfo) -> bool[src]

Replaces the config root reference in the account packet. Returns false if it wasn't updated. Doesn't actually modify the session packet - you should call update_account_packet afterwards to actually update it on the network.

pub fn update_account_packet(&self) -> Box<AuthFuture<()>>[src]

Updates user's account packet.

pub fn std_dirs_created(&self) -> bool[src]

Returns the current status of std/root dirs creation.

pub fn set_std_dirs_created(&self, val: bool)[src]

Sets the current status of std/root dirs creation.

Trait Implementations

impl AuthActions for AuthClient[src]

impl Client for AuthClient[src]

type Context = ()

Associated message type.

impl Clone for AuthClient[src]

impl Debug for AuthClient[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> CloneAny for T where
    T: Clone + Any

impl<T> DebugAny for T where
    T: Any + Debug

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> 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.

impl<T> UnsafeAny for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,