pub struct MoqClient { /* private fields */ }Implementations§
Source§impl MoqClient
impl MoqClient
Sourcepub fn set_tls_disable_verify(&self, disable: bool)
pub fn set_tls_disable_verify(&self, disable: bool)
Disable TLS certificate verification (for development only).
Sourcepub fn set_tls_roots(&self, paths: Vec<String>)
pub fn set_tls_roots(&self, paths: Vec<String>)
Trust these PEM root certificate file(s) instead of the system roots.
Pass the paths to PEM-encoded CA certificates. An empty list restores the default behavior of using the platform’s native root store.
Sourcepub fn set_tls_fingerprints(&self, fingerprints: Vec<String>)
pub fn set_tls_fingerprints(&self, fingerprints: Vec<String>)
Pin the peer to a certificate with one of these SHA-256 fingerprints, encoded as hex.
This is the native equivalent of the browser’s WebTransport serverCertificateHashes
and accepts the same values a server reports (see MoqServer.cert_fingerprints). Use it
to trust a self-signed certificate without disabling verification. An empty list clears
any pinned fingerprints.
Sourcepub fn set_bind(&self, addr: String) -> Result<(), MoqError>
pub fn set_bind(&self, addr: String) -> Result<(), MoqError>
Set the local UDP socket bind address. Defaults to [::]:0.
Returns an error if the address cannot be parsed.
Sourcepub fn set_publish(&self, origin: Option<Arc<MoqOriginProducer>>)
pub fn set_publish(&self, origin: Option<Arc<MoqOriginProducer>>)
Set the origin to publish local broadcasts to the remote.
Sourcepub fn set_consume(&self, origin: Option<Arc<MoqOriginProducer>>)
pub fn set_consume(&self, origin: Option<Arc<MoqOriginProducer>>)
Set the origin to consume remote broadcasts from the remote.