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.
quinn
tcp
Plain-TCP qmux transport, reachable via the tcp:// URL scheme.
tls
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

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.
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.
ServerId
Server ID for QUIC-LB support.
TcpConfig
Plaintext-TCP qmux listener settings (no TLS, no UDP).
UnixAllow
Peer-credential allowlist for a unix:// listener.
UnixConfig
Plaintext Unix-socket qmux listener settings, with an optional peer-credential allowlist.

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.

Type Aliases§

Result
Convenience alias for results produced by this crate.