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: SocketAddrThe remote socket to send & receive to
remote_sockid: SocketIdThe socket id of the UDT entity on the other side
local_sockid: SocketIdThe local UDT socket id
socket_start_time: InstantThe 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: Durationthe initial RTT, to be used with TSBPD
init_seq_num: SeqNumberThe first sequence number that will be sent/received
max_packet_size: PacketSizeThe maximum packet size
max_flow_size: PacketCountThe maximum flow size
send_tsbpd_latency: DurationThe TSBPD of the connection–the max of each side’s respective latencies
recv_tsbpd_latency: Duration§too_late_packet_drop: boolThe 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: PacketCountSize of the receive buffer, in packets
send_buffer_size: PacketCountSize of the send buffer, in packets
cipher: Option<CipherSettings>§stream_id: Option<String>§bandwidth: LiveBandwidthMode§statistics_interval: DurationTrait 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 for ConnectionSettings
impl PartialEq for ConnectionSettings
impl Eq for ConnectionSettings
impl StructuralPartialEq for ConnectionSettings
Auto Trait Implementations§
impl Freeze for ConnectionSettings
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.