Struct safe_authenticator::Authenticator
[−]
[src]
pub struct Authenticator { pub core_tx: Mutex<CoreMsgTx<()>>, // some fields omitted }
Authenticator instance
Fields
core_tx: Mutex<CoreMsgTx<()>>
Channel to communicate with the core event loop
Methods
impl Authenticator
[src]
fn send<F>(&self, f: F) -> Result<(), AuthError> where
F: FnOnce(&Client<()>) -> Option<Box<Future<Item = (), Error = ()>>> + Send + 'static,
[src]
F: FnOnce(&Client<()>) -> Option<Box<Future<Item = (), Error = ()>>> + Send + 'static,
Send a message to the authenticator event loop
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]
locator: S,
password: S,
invitation: S,
disconnect_notifier: N
) -> Result<Self, AuthError> where
N: FnMut() + Send + 'static,
S: Into<String>,
Create a new account
fn login<S, N>(
locator: S,
password: S,
disconnect_notifier: N
) -> Result<Self, AuthError> where
S: Into<String>,
N: FnMut() + Send + 'static,
[src]
locator: S,
password: S,
disconnect_notifier: N
) -> Result<Self, AuthError> where
S: Into<String>,
N: FnMut() + Send + 'static,
Log in to an existing account
fn login_impl<F: Send + 'static, N>(
create_client_fn: F,
disconnect_notifier: N
) -> Result<Self, AuthError> where
F: FnOnce(Handle, CoreMsgTx<()>, NetworkTx) -> Result<Client<()>, CoreError>,
N: FnMut() + Send + 'static,
[src]
create_client_fn: F,
disconnect_notifier: N
) -> Result<Self, AuthError> where
F: FnOnce(Handle, CoreMsgTx<()>, NetworkTx) -> Result<Client<()>, CoreError>,
N: FnMut() + Send + 'static,
Log in to an existing account