pub enum AnyTransportType {
Quic,
WebTransport {
url: String,
},
}Expand description
Draft-agnostic transport choice for AnyConnection::connect.
Variants§
Quic
Raw QUIC via quinn. The addr passed to connect should be host:port.
WebTransport
WebTransport via wtransport. The url is the WebTransport endpoint.
Trait Implementations§
Source§impl Clone for AnyTransportType
impl Clone for AnyTransportType
Source§fn clone(&self) -> AnyTransportType
fn clone(&self) -> AnyTransportType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AnyTransportType
impl RefUnwindSafe for AnyTransportType
impl Send for AnyTransportType
impl Sync for AnyTransportType
impl Unpin for AnyTransportType
impl UnsafeUnpin for AnyTransportType
impl UnwindSafe for AnyTransportType
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