Struct aws_smithy_runtime::client::http::body::minimum_throughput::Throughput
source · pub struct Throughput { /* private fields */ }
Available on crate feature
client
only.Expand description
Throughput representation for use when configuring super::MinimumThroughputBody
Implementations§
source§impl Throughput
impl Throughput
sourcepub fn new(bytes_read: u64, per_time_elapsed: Duration) -> Self
pub fn new(bytes_read: u64, per_time_elapsed: Duration) -> Self
Create a new throughput with the given bytes read and time elapsed.
sourcepub fn new_bytes_per_second(bytes: u64) -> Self
pub fn new_bytes_per_second(bytes: u64) -> Self
Create a new throughput in bytes per second.
sourcepub fn new_kilobytes_per_second(kilobytes: u64) -> Self
pub fn new_kilobytes_per_second(kilobytes: u64) -> Self
Create a new throughput in kilobytes per second.
sourcepub fn new_megabytes_per_second(megabytes: u64) -> Self
pub fn new_megabytes_per_second(megabytes: u64) -> Self
Create a new throughput in megabytes per second.
Trait Implementations§
source§impl Clone for Throughput
impl Clone for Throughput
source§fn clone(&self) -> Throughput
fn clone(&self) -> Throughput
Returns a copy 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 Throughput
impl Debug for Throughput
source§impl Display for Throughput
impl Display for Throughput
source§impl PartialEq for Throughput
impl PartialEq for Throughput
source§impl PartialOrd for Throughput
impl PartialOrd for Throughput
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Throughput
Auto Trait Implementations§
impl Freeze for Throughput
impl RefUnwindSafe for Throughput
impl Send for Throughput
impl Sync for Throughput
impl Unpin for Throughput
impl UnwindSafe for Throughput
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.