pub enum TransportKind {
Udp,
Tcp,
Tls,
Ws,
Wss,
Quic,
}Expand description
Which transport a message travels over.
Variants§
Udp
UDP: retransmits, one message per datagram.
Tcp
TCP: reliable, Content-Length framing.
Tls
TLS over TCP.
Ws
SIP over WebSocket (RFC 7118).
Wss
SIP over secure WebSocket.
Quic
SIP over QUIC using sipx’s experimental mapping.
Implementations§
Source§impl TransportKind
impl TransportKind
Sourcepub fn reliability(self) -> Reliability
pub fn reliability(self) -> Reliability
Whether the transport delivers reliably, which decides half the transaction timers.
Sourcepub fn is_secure(self) -> bool
pub fn is_secure(self) -> bool
Whether this transport protects the signalling itself.
The question SDES turns on. RFC 4568 §7.1 makes a secure signalling path a condition of carrying a key in SDP, because the key travels in the body — so this decides whether sipx may offer encrypted media at all.
Sourcepub fn default_port(self) -> u16
pub fn default_port(self) -> u16
The default port, per RFC 3261 §19.1.2 and RFC 7118.
Trait Implementations§
Source§impl Clone for TransportKind
impl Clone for TransportKind
Source§fn clone(&self) -> TransportKind
fn clone(&self) -> TransportKind
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 TransportKind
impl Debug for TransportKind
Source§impl Hash for TransportKind
impl Hash for TransportKind
Source§impl PartialEq for TransportKind
impl PartialEq for TransportKind
Source§fn eq(&self, other: &TransportKind) -> bool
fn eq(&self, other: &TransportKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for TransportKind
impl Eq for TransportKind
impl StructuralPartialEq for TransportKind
Auto Trait Implementations§
impl Freeze for TransportKind
impl RefUnwindSafe for TransportKind
impl Send for TransportKind
impl Sync for TransportKind
impl Unpin for TransportKind
impl UnsafeUnpin for TransportKind
impl UnwindSafe for TransportKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more