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

source§

fn clone(&self) -> ConnectionSettings

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ConnectionSettings

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq for ConnectionSettings

source§

fn eq(&self, other: &ConnectionSettings) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Eq for ConnectionSettings

source§

impl StructuralPartialEq for ConnectionSettings

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V