1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
// Copyright (C) 2024-2026 Tristan Stoltz / Luminous Dynamics
// SPDX-License-Identifier: AGPL-3.0-or-later
//! Transport trait abstracting the communication mechanism with a Holochain conductor.
//!
//! Implementations:
//! - [`BrowserWsTransport`](crate::browser::BrowserWsTransport) — browser `WebSocket`
//! - [`TauriIpcTransport`](crate::tauri::TauriIpcTransport) — Tauri IPC bridge
use crateClientError;
use crate;
use Future;
use Pin;
/// Abstraction over the communication channel to a Holochain conductor.
///
/// This trait uses `Pin<Box<dyn Future>>` instead of `async fn` in trait
/// because `async_fn_in_traits` is not yet stable, and we need object safety
/// is not required (generic `HolochainClient<T: HolochainTransport>`).
///
/// The `'static` bound is needed so futures can be spawned in WASM.