#[non_exhaustive]pub struct Transport {
pub idle_timeout: Duration,
pub max_streams: u64,
pub congestion: Congestion,
pub keep_alive: Option<Duration>,
}Expand description
The per-connection transport knobs, the same for either role.
Separate from the role configs so a caller that already has these
settings (a relay applying its --quic-* section, say) sets them once and
hands the same value to a dial and a listener.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.idle_timeout: DurationClose the connection after this long without activity.
max_streams: u64The most streams of each kind (bidirectional and unidirectional) a peer may have open at once. MoQ opens a stream per group, so busy endpoints want this high.
congestion: CongestionWhich congestion controller to run.
keep_alive: Option<Duration>How often to send an ack-eliciting packet on an otherwise idle
connection, or None (the default) to send none and let the idle
timeout decide.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Transport
impl RefUnwindSafe for Transport
impl Send for Transport
impl Sync for Transport
impl Unpin for Transport
impl UnsafeUnpin for Transport
impl UnwindSafe for Transport
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