#[non_exhaustive]pub struct ClientConfig {
pub connect: Option<Url>,
pub bind: SocketAddr,
pub backend: Option<QuicBackend>,
pub max_streams: Option<u64>,
pub version: Vec<Version>,
pub tls: Client,
pub backoff: Backoff,
pub websocket: Client,
}Expand description
Configuration for the MoQ client.
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.connect: Option<Url>The URL to dial.
Supports WebTransport (https/http), WebSocket (ws/wss), raw QUIC
(moqt/moql), qmux over tcp/unix, and iroh. The URL path is the
request/auth path (e.g. /anon for a public relay) and ?jwt= supplies a
token. http:// first fetches /certificate.sha256 for the (insecure)
self-signed fingerprint; https:// connects directly.
bind: SocketAddrListen for UDP packets on the given address.
backend: Option<QuicBackend>The QUIC backend to use. Auto-detected from compiled features if not specified.
max_streams: Option<u64>Maximum number of concurrent QUIC streams per connection (both bidi and uni).
version: Vec<Version>Restrict the client to specific MoQ protocol version(s).
By default, the client offers all supported versions and lets the server choose.
Use this to force a specific version, e.g. --client-version moq-lite-02.
Can be specified multiple times to offer a subset of versions.
Valid values: moq-lite-01, moq-lite-02, moq-lite-03, moq-transport-14, moq-transport-15, moq-transport-16, moq-transport-17
tls: Client§backoff: Backoff§websocket: ClientImplementations§
Trait Implementations§
Source§impl Args for ClientConfig
impl Args for ClientConfig
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 ClientConfig
impl Clone for ClientConfig
Source§fn clone(&self) -> ClientConfig
fn clone(&self) -> ClientConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl CommandFactory for ClientConfig
impl CommandFactory for ClientConfig
Source§impl Debug for ClientConfig
impl Debug for ClientConfig
Source§impl Default for ClientConfig
impl Default for ClientConfig
Source§impl<'de> Deserialize<'de> for ClientConfigwhere
ClientConfig: Default,
impl<'de> Deserialize<'de> for ClientConfigwhere
ClientConfig: 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 ClientConfig
impl FromArgMatches for ClientConfig
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.