pub enum TransportReliability {
Reliable(Duration),
Unreliable(RttConfig),
}Expand description
Description of the transport reliability, for STUN protocol
communication. It can be reliable or unreliable depending on
whether this is a UDP or TCP connection.
Variants§
Reliable(Duration)
Reliable transport, such as TCP, where Duration represents the maximum
time to wait for a response.
Unreliable(RttConfig)
Unreliable transport, such as UDP, where the RttConfig contains the
parameters to calculate the re-transmission timeout.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TransportReliability
impl RefUnwindSafe for TransportReliability
impl Send for TransportReliability
impl Sync for TransportReliability
impl Unpin for TransportReliability
impl UnwindSafe for TransportReliability
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