pub struct Throttle {
pub connection_id: u64,
pub request_id: u64,
pub size: u64,
}
Expand description
Request to throttle sending for a specific request.
Fields§
§connection_id: u64
The connection id. Multiple requests can be sent over the same connection.
request_id: u64
The request id. There is a new id for each request.
size: u64
Size of the chunk to be throttled. This will usually be 16 KiB.
Trait Implementations§
Source§impl Channels<ProviderProto> for Throttle
impl Channels<ProviderProto> for Throttle
Source§impl<'de> Deserialize<'de> for Throttle
impl<'de> Deserialize<'de> for Throttle
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<Throttle> for ProviderProto
impl From<Throttle> for ProviderProto
Auto Trait Implementations§
impl Freeze for Throttle
impl RefUnwindSafe for Throttle
impl Send for Throttle
impl Sync for Throttle
impl Unpin for Throttle
impl UnwindSafe for Throttle
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