Struct safe_authenticator::Authenticator [−][src]
Authenticator instance.
Fields
core_tx: Mutex<AuthMsgTx>
Channel to communicate with the core event loop.
Methods
impl Authenticator
[src]
impl Authenticator
pub fn send<F>(&self, f: F) -> Result<(), AuthError> where
F: FnOnce(&AuthClient) -> Option<Box<Future<Item = (), Error = ()>>> + Send + 'static,
[src]
pub fn send<F>(&self, f: F) -> Result<(), AuthError> where
F: FnOnce(&AuthClient) -> Option<Box<Future<Item = (), Error = ()>>> + Send + 'static,
Send a message to the authenticator event loop.
pub fn create_acc<S, N>(
locator: S,
password: S,
invitation: S,
disconnect_notifier: N
) -> Result<Self, AuthError> where
N: FnMut() + Send + 'static,
S: Into<String>,
[src]
pub fn create_acc<S, N>(
locator: S,
password: S,
invitation: S,
disconnect_notifier: N
) -> Result<Self, AuthError> where
N: FnMut() + Send + 'static,
S: Into<String>,
Create a new account.
pub fn login<S, N>(
locator: S,
password: S,
disconnect_notifier: N
) -> Result<Self, AuthError> where
S: Into<String>,
N: FnMut() + Send + 'static,
[src]
pub fn login<S, N>(
locator: S,
password: S,
disconnect_notifier: N
) -> Result<Self, AuthError> where
S: Into<String>,
N: FnMut() + Send + 'static,
Log in to an existing account
pub fn login_impl<F: Send + 'static, N>(
create_client_fn: F,
disconnect_notifier: N
) -> Result<Self, AuthError> where
F: FnOnce(Handle, AuthMsgTx, NetworkTx) -> Result<AuthClient, AuthError>,
N: FnMut() + Send + 'static,
[src]
pub fn login_impl<F: Send + 'static, N>(
create_client_fn: F,
disconnect_notifier: N
) -> Result<Self, AuthError> where
F: FnOnce(Handle, AuthMsgTx, NetworkTx) -> Result<AuthClient, AuthError>,
N: FnMut() + Send + 'static,
Log in to an existing account.
Trait Implementations
impl Drop for Authenticator
[src]
impl Drop for Authenticator
Auto Trait Implementations
impl Send for Authenticator
impl Send for Authenticator
impl Sync for Authenticator
impl Sync for Authenticator