#[non_exhaustive]pub struct ServerConfig {
pub bind: Option<SocketAddr>,
pub backend: Option<QuicBackend>,
pub quic_lb_id: Option<ServerId>,
pub quic_lb_nonce: Option<usize>,
pub max_streams: Option<u64>,
pub version: Vec<Version>,
pub tls: ServerTlsConfig,
}Expand description
Configuration for the MoQ server.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.bind: Option<SocketAddr>Listen for UDP packets on the given address.
Defaults to [::]:443 if not provided.
backend: Option<QuicBackend>The QUIC backend to use. Auto-detected from compiled features if not specified.
quic_lb_id: Option<ServerId>Server ID to embed in connection IDs for QUIC-LB compatibility. If set, connection IDs will be derived semi-deterministically.
quic_lb_nonce: Option<usize>Number of random nonce bytes in QUIC-LB connection IDs. Must be at least 4, and server_id + nonce + 1 must not exceed 20.
max_streams: Option<u64>Maximum number of concurrent QUIC streams per connection (both bidi and uni).
version: Vec<Version>Restrict the server to specific MoQ protocol version(s).
By default, the server accepts all supported versions.
Use this to restrict to specific versions, e.g. --server-version moq-lite-02.
Can be specified multiple times to accept a subset of versions.
Valid values: moq-lite-01, moq-lite-02, moq-lite-03, moq-transport-14, moq-transport-15, moq-transport-16
tls: ServerTlsConfigImplementations§
Trait Implementations§
Source§impl Args for ServerConfig
impl Args for ServerConfig
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for ServerConfig
impl Clone for ServerConfig
Source§fn clone(&self) -> ServerConfig
fn clone(&self) -> ServerConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ServerConfig
impl Debug for ServerConfig
Source§impl Default for ServerConfig
impl Default for ServerConfig
Source§fn default() -> ServerConfig
fn default() -> ServerConfig
Source§impl<'de> Deserialize<'de> for ServerConfigwhere
ServerConfig: Default,
impl<'de> Deserialize<'de> for ServerConfigwhere
ServerConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl FromArgMatches for ServerConfig
impl FromArgMatches for ServerConfig
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.