pub enum AnyConnection {
Draft07(Connection),
Draft08(Connection),
Draft09(Connection),
Draft10(Connection),
Draft11(Connection),
Draft12(Connection),
Draft13(Connection),
Draft14(Connection),
Draft15(Connection),
Draft16(Connection),
Draft17(Connection),
}Expand description
A MoQT client connection of any enabled draft version.
Wraps the draft-specific Connection type. Methods common to all
drafts are forwarded; for draft-specific protocol calls, match on
the variant.
Variants§
Draft07(Connection)
A draft-draft07 connection.
Draft08(Connection)
A draft-draft08 connection.
Draft09(Connection)
A draft-draft09 connection.
Draft10(Connection)
A draft-draft10 connection.
Draft11(Connection)
A draft-draft11 connection.
Draft12(Connection)
A draft-draft12 connection.
Draft13(Connection)
A draft-draft13 connection.
Draft14(Connection)
A draft-draft14 connection.
Draft15(Connection)
A draft-draft15 connection.
Draft16(Connection)
A draft-draft16 connection.
Draft17(Connection)
A draft-draft17 connection.
Implementations§
Source§impl AnyConnection
impl AnyConnection
Sourcepub fn set_observer(&mut self, observer: Arc<dyn AnyConnectionObserver>)
pub fn set_observer(&mut self, observer: Arc<dyn AnyConnectionObserver>)
Attach an observer. The observer is adapted into the
draft-specific observer trait and installed on the inner
connection; events are forwarded as AnyClientEvent.
Replaces any previously attached observer.
Sourcepub fn clear_observer(&mut self)
pub fn clear_observer(&mut self)
Remove any attached observer.
Auto Trait Implementations§
impl Freeze for AnyConnection
impl !RefUnwindSafe for AnyConnection
impl Send for AnyConnection
impl Sync for AnyConnection
impl Unpin for AnyConnection
impl UnsafeUnpin for AnyConnection
impl !UnwindSafe for AnyConnection
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