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