pub struct SendConfig {
pub max_packets: usize,
pub max_bytes: usize,
pub max_age_us: u64,
pub max_payload: usize,
pub bandwidth: u64,
pub max_retransmits: u32,
}Expand description
Limits cover pending AND unacknowledged payloads. Payload ownership is transferred into the queue, retained once, and copied once per wire send.
Fields§
§max_packets: usizeMost packets held at once, queued or awaiting acknowledgement; default 4096.
max_bytes: usizeSum of retained payload allocation capacities (metadata is packet-bounded).
max_age_us: u64Maximum age since enqueue, in microseconds. Expiry closes the session.
max_payload: usizeOne complete live message per datagram (1316 fits seven TS packets).
bandwidth: u64Bytes/second including the SRT header, shared by originals and retries.
max_retransmits: u32Per-packet retransmissions before ending the session.
Trait Implementations§
Source§impl Clone for SendConfig
impl Clone for SendConfig
Source§impl Debug for SendConfig
impl Debug for SendConfig
Auto Trait Implementations§
impl Freeze for SendConfig
impl RefUnwindSafe for SendConfig
impl Send for SendConfig
impl Sync for SendConfig
impl Unpin for SendConfig
impl UnsafeUnpin for SendConfig
impl UnwindSafe for SendConfig
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