pub enum UriTransport {
Udp,
Tcp,
Tls,
Ws,
Wss,
Quic,
}Expand description
Effective wire transport selected by a SIP/SIPS URI.
Variants§
Udp
UDP datagrams.
Tcp
TCP stream.
Tls
TLS over TCP.
Ws
SIP over WebSocket.
Wss
SIP over secure WebSocket.
Quic
SIP over QUIC.
Implementations§
Source§impl UriTransport
impl UriTransport
Sourcepub fn default_port(self) -> u16
pub fn default_port(self) -> u16
Default port for this transport when the URI omits one.
Trait Implementations§
Source§impl Clone for UriTransport
impl Clone for UriTransport
Source§fn clone(&self) -> UriTransport
fn clone(&self) -> UriTransport
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 moreSource§impl Debug for UriTransport
impl Debug for UriTransport
Source§impl Hash for UriTransport
impl Hash for UriTransport
Source§impl PartialEq for UriTransport
impl PartialEq for UriTransport
Source§fn eq(&self, other: &UriTransport) -> bool
fn eq(&self, other: &UriTransport) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for UriTransport
impl Eq for UriTransport
impl StructuralPartialEq for UriTransport
Auto Trait Implementations§
impl Freeze for UriTransport
impl RefUnwindSafe for UriTransport
impl Send for UriTransport
impl Sync for UriTransport
impl Unpin for UriTransport
impl UnsafeUnpin for UriTransport
impl UnwindSafe for UriTransport
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