(&self)
| 68 | } |
| 69 | |
| 70 | async fn run(&self) -> Result<(), Box<dyn std::error::Error>> { |
| 71 | match self { |
| 72 | ExampleKind::All => { |
| 73 | for example in ExampleKind::runnable() { |
| 74 | println!("Running example: {example}"); |
| 75 | Box::pin(example.run()).await?; |
| 76 | } |
| 77 | } |
| 78 | ExampleKind::Client => client::client().await?, |
| 79 | ExampleKind::Server => server::server().await?, |
| 80 | ExampleKind::SqlServer => sql_server::sql_server().await?, |
| 81 | } |
| 82 | Ok(()) |
| 83 | } |
| 84 | } |
| 85 | |
| 86 | #[tokio::main] |
no test coverage detected