pub enum SessionKind {
Direct,
Relay,
}Expand description
How the pilot is reached.
Variants§
Direct
A direct WebTransport session over QUIC — the product.
Relay
Bytes carried through the cloud relay (ADR 0010): the last resort when no candidate connected, and always shown to the pilot as such.
Trait Implementations§
Source§impl Clone for SessionKind
impl Clone for SessionKind
Source§fn clone(&self) -> SessionKind
fn clone(&self) -> SessionKind
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 moreimpl Copy for SessionKind
Source§impl Debug for SessionKind
impl Debug for SessionKind
impl Eq for SessionKind
Source§impl PartialEq for SessionKind
impl PartialEq for SessionKind
Source§fn eq(&self, other: &SessionKind) -> bool
fn eq(&self, other: &SessionKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SessionKind
Auto Trait Implementations§
impl Freeze for SessionKind
impl RefUnwindSafe for SessionKind
impl Send for SessionKind
impl Sync for SessionKind
impl Unpin for SessionKind
impl UnsafeUnpin for SessionKind
impl UnwindSafe for SessionKind
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