pub struct Client { /* private fields */ }Expand description
A MoQ client session builder.
Implementations§
Source§impl Client
impl Client
pub fn new() -> Client
pub fn with_publish(self, publish: impl Into<Option<OriginConsumer>>) -> Client
pub fn with_consume(self, consume: impl Into<Option<OriginProducer>>) -> Client
Sourcepub fn with_origin(self, origin: OriginProducer) -> Client
pub fn with_origin(self, origin: OriginProducer) -> Client
Set both publish and consume from an OriginProducer.
This is equivalent to calling with_publish(origin.consume()) and with_consume(origin).
pub fn with_versions(self, versions: Versions) -> Client
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 UnsafeUnpin 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