pub struct Config {Show 13 fields
pub authorization: HashMap<String, String>,
pub video_source: PathBuf,
pub debug: bool,
pub video_host: String,
pub video_port: i32,
pub session_duration: i32,
pub file_formats: Vec<String>,
pub workers: i32,
pub max_connections: i32,
pub websites: Vec<String>,
pub secure_session: bool,
pub key_file: PathBuf,
pub cert_file: PathBuf,
}Expand description
Represents the configuration parameters for RuStream.
Fields§
Dictionary of key-value pairs for authorization (username and password).
video_source: PathBufSource path for video files.
debug: boolDebug flag to enable debug level logging.
video_host: StringHost IP address for video hosting.
video_port: i32Port number for hosting the application.
session_duration: i32Duration of a session in seconds.
file_formats: Vec<String>List of supported video file formats.
workers: i32Number of worker threads to spin up the server.
max_connections: i32Maximum number of concurrent connections.
websites: Vec<String>List of websites (supports regex) to add to CORS configuration.
secure_session: boolBoolean flag to restrict session_token to be sent only via HTTPS
key_file: PathBufPath to the private key file for SSL certificate
cert_file: PathBufPath to the full certificate chain file for SSL certificate
Auto Trait Implementations§
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more