#[non_exhaustive]pub struct ServerConfig {
pub bind: Option<String>,
pub tcp: TcpConfig,
pub unix: UnixConfig,
pub backend: Option<QuicBackend>,
pub quic: Server,
pub version: Vec<Version>,
pub tls: Server,
}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<String>Listen for QUIC (UDP) on the given address. Defaults to [::]:443.
Accepts standard socket address syntax (e.g. [::]:443) or a DNS
host:port pair (e.g. fly-global-services:443), resolved at bind time
(first address only; Quinn cannot bind multiple). Leave unset while a
tcp/unix listener is configured to run a stream-only server with no
QUIC.
tcp: TcpConfigPlaintext qmux TCP listener (--server-tcp-bind, no TLS). Requires the
tcp feature.
unix: UnixConfigPlaintext qmux Unix-socket listener (--server-unix-bind) with an optional
peer-credential allowlist. Requires the uds feature; unix-only.
backend: Option<QuicBackend>The QUIC backend to use. Auto-detected from compiled features if not specified.
quic: ServerQUIC transport tuning (--server-quic-*): stream limits, GSO, timeouts,
plus the accept-side knobs (preferred address, QUIC-LB connection IDs).
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: ServerImplementations§
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 (const: unstable) · 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.