pub enum KnownTransport {
Quic,
WebRtcDirect,
}Expand description
A transport understood by this implementation.
This enum is never serialized. Its stable numeric identifier is carried by
TransportAddressRecord::transport so unknown future values remain
decodable.
Variants§
Implementations§
Source§impl KnownTransport
impl KnownTransport
Sourcepub const WEBRTC_DIRECT_ID: u16 = 2
pub const WEBRTC_DIRECT_ID: u16 = 2
Stable wire identifier for WebRTC Direct.
Trait Implementations§
Source§impl Clone for KnownTransport
impl Clone for KnownTransport
impl Copy for KnownTransport
Source§impl Debug for KnownTransport
impl Debug for KnownTransport
impl Eq for KnownTransport
Source§impl PartialEq for KnownTransport
impl PartialEq for KnownTransport
impl StructuralPartialEq for KnownTransport
Auto Trait Implementations§
impl Freeze for KnownTransport
impl RefUnwindSafe for KnownTransport
impl Send for KnownTransport
impl Sync for KnownTransport
impl Unpin for KnownTransport
impl UnsafeUnpin for KnownTransport
impl UnwindSafe for KnownTransport
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.