#[non_exhaustive]pub enum RelayTransport {
Udp,
Tcp,
}Expand description
What an allocation relays to and from peers: the REQUESTED-TRANSPORT of its Allocate.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Udp
UDP datagrams (RFC 8656): permissions, Send and Data indications, channels.
Tcp
TCP connections (RFC 6062): the client connects to peers with
Relay::connect and accepts their connections from
Event::ConnectionAttempt, each over a
DataConnection of its own. The client must
reach the server over TCP or TLS.
Trait Implementations§
Source§impl Clone for RelayTransport
impl Clone for RelayTransport
impl Copy for RelayTransport
Source§impl Debug for RelayTransport
impl Debug for RelayTransport
Source§impl Default for RelayTransport
impl Default for RelayTransport
impl Eq for RelayTransport
Source§impl PartialEq for RelayTransport
impl PartialEq for RelayTransport
impl StructuralPartialEq for RelayTransport
Auto Trait Implementations§
impl Forget for RelayTransport
impl Freeze for RelayTransport
impl Move for RelayTransport
impl RefUnwindSafe for RelayTransport
impl Send for RelayTransport
impl Sync for RelayTransport
impl Unpin for RelayTransport
impl UnsafeUnpin for RelayTransport
impl UnwindSafe for RelayTransport
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