pub enum Transport {
Quic,
Iroh,
WebSocket,
Tcp,
Unix,
Http,
}Expand description
How a session reached the relay. The names match moq_tokio::server::Transport,
plus http for the relay’s one-shot HTTP routes.
Variants§
Quic
QUIC, either directly or through WebTransport over HTTP/3.
Iroh
An Iroh QUIC connection.
WebSocket
A WebSocket connection using qmux framing.
Tcp
A plaintext TCP connection using qmux framing.
Unix
A Unix domain socket using qmux framing.
Http
A one-shot HTTP request on the relay’s web listener (/fetch, /announced),
admitted and ended within the request.
Implementations§
Trait Implementations§
impl Copy for Transport
Source§impl<'de> Deserialize<'de> for Transport
impl<'de> Deserialize<'de> for Transport
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Transport
impl StructuralPartialEq for Transport
Auto Trait Implementations§
impl Freeze for Transport
impl RefUnwindSafe for Transport
impl Send for Transport
impl Sync for Transport
impl Unpin for Transport
impl UnsafeUnpin for Transport
impl UnwindSafe for Transport
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