Struct aws_smithy_runtime::client::http::body::minimum_throughput::Throughput
source · pub struct Throughput { /* private fields */ }
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 const fn new_bytes_per_second(bytes: u64) -> Self
pub const fn new_bytes_per_second(bytes: u64) -> Self
Create a new throughput in bytes per second.
sourcepub const fn new_kilobytes_per_second(kilobytes: u64) -> Self
pub const fn new_kilobytes_per_second(kilobytes: u64) -> Self
Create a new throughput in kilobytes per second.
sourcepub const fn new_megabytes_per_second(megabytes: u64) -> Self
pub const 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
impl 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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.