Skip to main content

Crate moq_native

Crate moq_native 

Source
Expand description

Helper library for native MoQ applications.

Establishes MoQ connections over:

  • WebTransport (HTTP/3)
  • Raw QUIC (with ALPN negotiation)
  • WebSocket (fallback via web-transport-ws)
  • Plain TCP via the tcp:// scheme (qmux, no TLS; requires tcp feature)
  • Unix domain socket via the unix:// scheme (qmux, peer-credential aware; requires uds feature, unix-only)
  • Iroh P2P (requires iroh feature)

See Client for connecting to relays and Server for accepting connections.

Re-exports§

pub use moq_net;
pub use rustls;
pub use notify;

Modules§

bind
Dual-stack socket binding.
quic
QUIC transport tuning, split by role.
quinn
The quinn QUIC backend, used for both WebTransport (https://) and raw QUIC (moqt://, moql://).
tcp
Plain-TCP qmux transport, reachable via the tcp:// URL scheme.
tls
TLS trust, certificates, and keys, split by role.
unix
Unix-domain-socket qmux transport, reachable via the unix:// URL scheme.
watch
Watch on-disk files (TLS certs/keys) and get notified when they’re rotated.
websocket
WebSocket fallback transport, running the QMux wire format over ws:// or wss://.

Structs§

Backoff
Exponential backoff configuration for reconnection attempts.
Client
Client for establishing MoQ connections over QUIC, WebTransport, or WebSocket.
ClientConfig
Configuration for the MoQ client.
ConnectionStatsReader
A cloneable read handle for the live connection stats of a Reconnect loop.
Log
Tracing log configuration.
Reconnect
Handle to a background reconnect loop.
Request
An incoming MoQ session that can be accepted or rejected.
Server
Server for accepting MoQ connections.
ServerConfig
Configuration for the MoQ server.

Enums§

ConnectError
Error returned when connection setup fails for a terminal auth reason.
Error
Errors produced while configuring or establishing native MoQ connections.
QuicBackend
The QUIC backend to use for connections.
Status
A connection lifecycle transition reported by Reconnect::status.
Transport
The network transport carrying an incoming MoQ session.

Type Aliases§

Result
Convenience alias for results produced by this crate.