#[non_exhaustive]pub struct Client {
pub moq: Client,
pub quic: Endpoint,
pub tls: ClientConfig,
pub transport: Arc<TransportConfig>,
pub websocket: ClientWebSocket,
}Expand description
Client for establishing MoQ connections over QUIC, WebTransport, or WebSocket.
Create via ClientConfig::init or Client::new.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.moq: Client§quic: Endpoint§tls: ClientConfig§transport: Arc<TransportConfig>§websocket: ClientWebSocketImplementations§
Source§impl Client
impl Client
pub fn new(config: ClientConfig) -> Result<Self>
pub fn with_publish(self, publish: impl Into<Option<OriginConsumer>>) -> Self
pub fn with_consume(self, consume: impl Into<Option<OriginProducer>>) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more