Struct safe_app::App [−][src]
pub struct App { /* fields omitted */ }
Handle to an application instance.
Methods
impl App
[src]
impl App
pub fn send<F>(&self, f: F) -> Result<(), AppError> where
F: FnOnce(&AppClient, &AppContext) -> Option<Box<Future<Item = (), Error = ()>>> + Send + 'static,
[src]
pub fn send<F>(&self, f: F) -> Result<(), AppError> where
F: FnOnce(&AppClient, &AppContext) -> Option<Box<Future<Item = (), Error = ()>>> + Send + 'static,
Send a message to app's event loop.
pub fn unregistered<N>(
disconnect_notifier: N,
config: Option<BootstrapConfig>
) -> Result<Self, AppError> where
N: FnMut() + Send + 'static,
[src]
pub fn unregistered<N>(
disconnect_notifier: N,
config: Option<BootstrapConfig>
) -> Result<Self, AppError> where
N: FnMut() + Send + 'static,
Create unregistered app.
pub fn registered<N>(
app_id: String,
auth_granted: AuthGranted,
disconnect_notifier: N
) -> Result<Self, AppError> where
N: FnMut() + Send + 'static,
[src]
pub fn registered<N>(
app_id: String,
auth_granted: AuthGranted,
disconnect_notifier: N
) -> Result<Self, AppError> where
N: FnMut() + Send + 'static,
Create registered app.