Struct srt_protocol::connection::ConnectionSettings
source · pub struct ConnectionSettings {Show 18 fields
pub remote: SocketAddr,
pub remote_sockid: SocketId,
pub local_sockid: SocketId,
pub socket_start_time: Instant,
pub rtt: Duration,
pub init_seq_num: SeqNumber,
pub max_packet_size: PacketSize,
pub max_flow_size: PacketCount,
pub send_tsbpd_latency: Duration,
pub recv_tsbpd_latency: Duration,
pub too_late_packet_drop: bool,
pub peer_idle_timeout: Duration,
pub recv_buffer_size: PacketCount,
pub send_buffer_size: PacketCount,
pub cipher: Option<CipherSettings>,
pub stream_id: Option<String>,
pub bandwidth: LiveBandwidthMode,
pub statistics_interval: Duration,
}
Fields§
§remote: SocketAddr
The remote socket to send & receive to
remote_sockid: SocketId
The socket id of the UDT entity on the other side
local_sockid: SocketId
The local UDT socket id
socket_start_time: Instant
The time that this socket started at, used to develop timestamps This is precisely the time that the Initiator sends the first packet (or an approximation if not the initiator, assuming symmetrical latency)
rtt: Duration
the initial RTT, to be used with TSBPD
init_seq_num: SeqNumber
The first sequence number that will be sent/received
max_packet_size: PacketSize
The maximum packet size
max_flow_size: PacketCount
The maximum flow size
send_tsbpd_latency: Duration
The TSBPD of the connection–the max of each side’s respective latencies
recv_tsbpd_latency: Duration
§too_late_packet_drop: bool
The Too-Late Packet Drop (TLPKTDROP) mechanism allows the sender to drop packets that have no chance to be delivered in time, and allows the receiver to skip missing packets that have not been delivered in time
peer_idle_timeout: Duration
§recv_buffer_size: PacketCount
Size of the receive buffer, in packets
send_buffer_size: PacketCount
Size of the send buffer, in packets
cipher: Option<CipherSettings>
§stream_id: Option<String>
§bandwidth: LiveBandwidthMode
§statistics_interval: Duration
Trait Implementations§
source§impl Clone for ConnectionSettings
impl Clone for ConnectionSettings
source§fn clone(&self) -> ConnectionSettings
fn clone(&self) -> ConnectionSettings
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ConnectionSettings
impl Debug for ConnectionSettings
source§impl PartialEq<ConnectionSettings> for ConnectionSettings
impl PartialEq<ConnectionSettings> for ConnectionSettings
source§fn eq(&self, other: &ConnectionSettings) -> bool
fn eq(&self, other: &ConnectionSettings) -> bool
self
and other
values to be equal, and is used
by ==
.impl Eq for ConnectionSettings
impl StructuralEq for ConnectionSettings
impl StructuralPartialEq for ConnectionSettings
Auto Trait Implementations§
impl RefUnwindSafe for ConnectionSettings
impl Send for ConnectionSettings
impl Sync for ConnectionSettings
impl Unpin for ConnectionSettings
impl UnwindSafe for ConnectionSettings
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.