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
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
//! Typed, document-scoped binary application IPC.
//!
//! Handles are weak: only [`IpcWindowOwner`] owns a frame. Application futures
//! execute on bounded workers, never on native completion drivers. Cancellation
//! cannot interrupt blocking Rust code; its task and memory permits remain held
//! until that code actually returns.
/// Fixed-layout envelope wire types; the byte layout is defined here.
pub use DocumentActivation;
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
use Future;
use Pin;
/// Current application envelope version (no v1 fallback). Bumped from `2` to
/// `3` when the wire format switched from protobuf to a fixed byte layout;
/// both ends of this transport ship in the same binary, so a hard version
/// bump with no dual-format negotiation is the correct, intentional contract.
pub const IPC_VERSION: u32 = 3;
/// Default complete encoded frame bound.
pub const DEFAULT_MAX_IPC_PAYLOAD_BYTES: usize = 1024 * 1024;
/// Owned asynchronous IPC completion; polling this never polls application code.
pub type IpcFuture<T> = ;