[][src]Struct safe_api::SafeAuthdClient

pub struct SafeAuthdClient {
    pub authd_endpoint: String,
    // some fields omitted
}

Fields

authd_endpoint: String

Implementations

impl SafeAuthdClient[src]

pub fn new(endpoint: Option<String>) -> Self[src]

pub fn update(&self, authd_path: Option<&str>) -> Result<()>[src]

pub fn start(&self, authd_path: Option<&str>) -> Result<()>[src]

pub fn stop(&self, authd_path: Option<&str>) -> Result<()>[src]

pub fn restart(&self, authd_path: Option<&str>) -> Result<()>[src]

pub async fn status<'_>(&'_ mut self) -> Result<AuthdStatus>[src]

pub async fn log_in<'_, '_, '_>(
    &'_ mut self,
    passphrase: &'_ str,
    password: &'_ str
) -> Result<()>
[src]

pub async fn log_out<'_>(&'_ mut self) -> Result<()>[src]

pub async fn create_acc<'_, '_, '_, '_>(
    &'_ self,
    sk: &'_ str,
    passphrase: &'_ str,
    password: &'_ str
) -> Result<()>
[src]

pub async fn authed_apps<'_>(&'_ self) -> Result<AuthedAppsList>[src]

pub async fn revoke_app<'_, '_>(&'_ self, app_id: &'_ str) -> Result<()>[src]

pub async fn auth_reqs<'_>(&'_ self) -> Result<PendingAuthReqs>[src]

pub async fn allow<'_>(&'_ self, req_id: SafeAuthReqId) -> Result<()>[src]

pub async fn deny<'_>(&'_ self, req_id: SafeAuthReqId) -> Result<()>[src]

pub async fn subscribe<'_, '_, '_, CB: 'static + Fn(AuthReq) -> Option<bool> + Send + Sync>(
    &'_ mut self,
    endpoint_url: &'_ str,
    app_id: &'_ str,
    allow_cb: CB
) -> Result<()>
[src]

pub async fn subscribe_url<'_, '_>(
    &'_ self,
    endpoint_url: &'_ str
) -> Result<()>
[src]

pub async fn unsubscribe<'_, '_>(
    &'_ mut self,
    endpoint_url: &'_ str
) -> Result<()>
[src]

Trait Implementations

impl Drop for SafeAuthdClient[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> 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.

impl<T> UnsafeAny for T where
    T: Any

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