pub struct ThroughputConfig {
pub throughput_cap: Option<Box<ThroughputCap>>,
pub throughput_unit: ThroughputUnit,
}Expand description
ThroughputConfig : The throughput configuration.
Fields§
§throughput_cap: Option<Box<ThroughputCap>>§throughput_unit: ThroughputUnitImplementations§
Source§impl ThroughputConfig
impl ThroughputConfig
Sourcepub fn new(throughput_unit: ThroughputUnit) -> ThroughputConfig
pub fn new(throughput_unit: ThroughputUnit) -> ThroughputConfig
The throughput configuration.
Trait Implementations§
Source§impl Clone for ThroughputConfig
impl Clone for ThroughputConfig
Source§fn clone(&self) -> ThroughputConfig
fn clone(&self) -> ThroughputConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ThroughputConfig
impl Debug for ThroughputConfig
Source§impl Default for ThroughputConfig
impl Default for ThroughputConfig
Source§fn default() -> ThroughputConfig
fn default() -> ThroughputConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ThroughputConfig
impl<'de> Deserialize<'de> for ThroughputConfig
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 PartialEq for ThroughputConfig
impl PartialEq for ThroughputConfig
Source§impl Serialize for ThroughputConfig
impl Serialize for ThroughputConfig
impl StructuralPartialEq for ThroughputConfig
Auto Trait Implementations§
impl Freeze for ThroughputConfig
impl RefUnwindSafe for ThroughputConfig
impl Send for ThroughputConfig
impl Sync for ThroughputConfig
impl Unpin for ThroughputConfig
impl UnsafeUnpin for ThroughputConfig
impl UnwindSafe for ThroughputConfig
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