pub async fn fetch(
    context: Arc<ClientContext>,
    params: ParamsOfFetch,
    callbacks: impl BrowserCallbacks + Send + Sync + 'static,
) -> ClientResult<RegisteredDebot> {
    let mut dengine = DEngine::new_with_client(
        params.address,
        None,
        context.clone(),
        Arc::new(callbacks),
    );
    dengine
        .fetch()
        .await
        .map_err(Error::fetch_failed)?;

    let handle = context.get_next_id();
    context.debots.insert(handle, Mutex::new(dengine));

    Ok(RegisteredDebot {
        debot_handle: DebotHandle(handle),
    })
}
/// [UNSTABLE](UNSTABLE.md) Fetches debot from blockchain.
/// 
/// Downloads debot smart contract (code and data) from blockchain and creates 
/// an instance of Debot Engine for it.
/// 
/// # Remarks
/// It does not switch debot to context 0. Browser Callbacks are not called.

[UNSTABLE](UNSTABLE.md) Fetches debot from blockchain.
Downloads debot smart contract (code and data) from blockchain and creates
an instance of Debot Engine for it.
[ UNSTABLE ] ( UNSTABLE . md ) Fetches debot from blockchain . Downloads debot smart contract ( code and data ) from blockchain and creates an instance of Debot Engine for it .
pub async fn fetch(
    context: Arc<ClientContext>,
    params: ParamsOfFetch,
    callbacks: impl BrowserCallbacks + Send + Sync + 'static,
) -> ClientResult<RegisteredDebot> {
    let mut dengine = DEngine::new_with_client(
        params.address,
        None,
        context.clone(),
        Arc::new(callbacks),
    );
    dengine
        .fetch()
        .await
        .map_err(Error::fetch_failed)?;
    let handle = context.get_next_id();
    context.debots.insert(handle, Mutex::new(dengine));
    Ok(RegisteredDebot {
        debot_handle: DebotHandle(handle),
    })
}
pub async fn fetch ( context : Arc < ClientContext > , params : ParamsOfFetch , callbacks : impl BrowserCallbacks + Send + Sync + ' static , ) -> ClientResult < RegisteredDebot > { let mut dengine = DEngine :: new_with_client ( params . address , None , context . clone ( ) , Arc :: new ( callbacks ) , ) ; dengine . fetch ( ) . await . map_err ( Error :: fetch_failed ) ? ; let handle = context . get_next_id ( ) ; context . debots . insert ( handle , Mutex :: new ( dengine ) ) ; Ok ( RegisteredDebot { debot_handle : DebotHandle ( handle ) , } ) }
[UNSTABLE](UNSTABLE.md) Fetches debot from blockchain.
[ UNSTABLE ] ( UNSTABLE . md ) Fetches debot from blockchain .
context
Arc<ClientContext>
params
ParamsOfFetch
callbacks
impl BrowserCallbacks + Send + Sync + 'static
remarks

It does not switch debot to context 0. Browser Callbacks are not called.
It does not switch debot to context 0 . Browser Callbacks are not called .