[−][src]Function safe_app::utils::test_utils::setup_client
pub fn setup_client<Create, A, C, F>(
context: &A,
c: Create
) -> Result<C, CoreError> where
A: 'static,
C: Client,
Create: FnOnce(UnboundedSender<NetworkEvent>) -> Result<C, F>,
F: Debug,
Helper to create a client Useful when we need to supply credentials explicitly or when Client is to be constructed as unregistered or as a result of successful login. Use this to create Client manually.