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
// Code generated by "go run ./cmd/gensdkrs" in the exe.dev repository. DO NOT EDIT.
//! The exe.dev SDK: create VMs, run commands on them, and run every exe.dev
//! command, from Rust.
//!
//! ```no_run
//! # async fn example() -> exedev::Result<()> {
//! // EXE_TOKEN holds an API key.
//! let exe = exedev::Client::from_env()?;
//! let vm = exe.new_vm().await?;
//! let result = vm.run("uname -a").check(true).await?;
//! print!("{}", result.stdout_lossy());
//! vm.delete().await?;
//! # Ok(()) }
//! ```
//!
//! Methods return request builders: set options with their methods, then
//! `.await` them. A builder does nothing until it is awaited. Command groups
//! are namespaces: `exe.team().members()`, `vm.share().port(8000)`.
//!
//! - [`Client`] runs commands for your account: [`Client::new_vm`],
//! [`Client::vms`], [`Client::vm`], and the rest in [`cmd`].
//! - [`Vm`] is a VM: [`Vm::run`] runs a command on it; [`Vm::write_file`],
//! [`Vm::read_file`], [`Vm::upload`] and [`Vm::download`] move files;
//! [`Vm::spawn`] starts a [`Process`] that outlives the connection.
//! - [`types`] are the JSON results of commands, as Rust types.
//! - Every error is an [`Error`].
//!
//! The SDK uses Tokio. With the `blocking` feature, [`blocking::BlockOn`]
//! runs requests from synchronous code.
// generated
// generated
pub use ;
pub use ;
pub use ;
pub use ;
pub use EgressPolicy;
pub use ;
pub use ;