Struct srt_protocol::options::Session
source · pub struct Session {
pub peer_idle_timeout: Duration,
pub max_segment_size: PacketSize,
pub statistics_interval: Duration,
}
Fields§
§peer_idle_timeout: Duration
SRTO_PEERIDLETIMEO The maximum time to wait until another packet is received from a peer since the last such packet reception. If this time is passed, the connection is considered broken on timeout.
The default value is 5000ms
max_segment_size: PacketSize
SRTO_MSS Maximum Segment Size. Used for buffer allocation and rate calculation using packet counter assuming fully filled packets. Each party can set its own MSS value independently. During a handshake the parties exchange MSS values, and the lowest is used.
Generally on the internet MSS is 1500 by default. This is the maximum size of a UDP packet and can be only decreased, unless you have some unusual dedicated network settings. MSS is not to be confused with the size of the UDP payload or SRT payload - this size is the size of the IP packet, including the UDP and SRT headers
THe value of SRTO_MSS must not exceed SRTO_UDP_SNDBUF or SRTO_UDP_RCVBUF.
statistics_interval: Duration
Trait Implementations§
source§impl OptionsOf<Session> for CallerOptions
impl OptionsOf<Session> for CallerOptions
fn set_options(&mut self, value: Session)
source§impl OptionsOf<Session> for ListenerOptions
impl OptionsOf<Session> for ListenerOptions
fn set_options(&mut self, value: Session)
source§impl OptionsOf<Session> for RendezvousOptions
impl OptionsOf<Session> for RendezvousOptions
fn set_options(&mut self, value: Session)
source§impl OptionsOf<Session> for SocketOptions
impl OptionsOf<Session> for SocketOptions
fn set_options(&mut self, value: Session)
source§impl PartialEq<Session> for Session
impl PartialEq<Session> for Session
source§impl Validation for Session
impl Validation for Session
impl Eq for Session
impl StructuralEq for Session
impl StructuralPartialEq for Session
Auto Trait Implementations§
impl RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnwindSafe for Session
Blanket Implementations§
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.