You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
distant/distant-net/src/server/config.rs

11 lines
395 B
Rust

use serde::{Deserialize, Serialize};
use std::time::Duration;
/// Represents a general-purpose set of properties tied with a server instance
#[derive(Clone, Debug, Default, PartialEq, Eq, Serialize, Deserialize)]
pub struct ServerConfig {
/// If provided, will cause server to shut down if duration is exceeded with no active
/// connections
pub shutdown_after: Option<Duration>,
}