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