Trait Throttleable
pub trait Throttleable: Sized {
type Throttled;
// Required method
fn throttle(self, config: &ThrottleConfig) -> Self::Throttled;
}Available on crate feature
net only.Expand description
An input that ThrottleLayer and OutgoingThrottleLayer throttle.
Byte streams are wrapped in a ThrottledIo. Multiplexed transports,
such as QUIC connections, gate the streams they carry with ThrottleGates.
Required Associated Types§
type Throttled
type Throttled
The throttled input.
Required Methods§
fn throttle(self, config: &ThrottleConfig) -> Self::Throttled
fn throttle(self, config: &ThrottleConfig) -> Self::Throttled
Throttle self as configured.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".