pub struct DeliveryControl {
pub max_samples: u16,
pub max_elapsed_time: Duration,
pub max_bytes_per_second: u32,
pub min_pace_period: Duration,
}Expand description
Delivery-Control (Spec §7.7.13).
0 als Wert bedeutet “no limit” (Spec); wir mappen das auf u16::MAX
fuer max_samples / Duration::MAX fuer max_elapsed_time.
Fields§
§max_samples: u16Maximale Anzahl Samples (0 = unlimited).
max_elapsed_time: DurationHarte Zeit-Obergrenze.
max_bytes_per_second: u32Rate-Cap in Bytes/s (0 = unlimited).
min_pace_period: DurationMindest-Pause zwischen Samples (ms). 0 = kein Pacing.
Implementations§
Source§impl DeliveryControl
impl DeliveryControl
Sourcepub fn single_shot() -> Self
pub fn single_shot() -> Self
Single-Shot Read: ein Sample, sofort.
Trait Implementations§
Source§impl Clone for DeliveryControl
impl Clone for DeliveryControl
Source§fn clone(&self) -> DeliveryControl
fn clone(&self) -> DeliveryControl
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DeliveryControl
impl Debug for DeliveryControl
Source§impl Default for DeliveryControl
impl Default for DeliveryControl
Source§impl Hash for DeliveryControl
impl Hash for DeliveryControl
Source§impl PartialEq for DeliveryControl
impl PartialEq for DeliveryControl
Source§fn eq(&self, other: &DeliveryControl) -> bool
fn eq(&self, other: &DeliveryControl) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for DeliveryControl
impl Eq for DeliveryControl
impl StructuralPartialEq for DeliveryControl
Auto Trait Implementations§
impl Freeze for DeliveryControl
impl RefUnwindSafe for DeliveryControl
impl Send for DeliveryControl
impl Sync for DeliveryControl
impl Unpin for DeliveryControl
impl UnsafeUnpin for DeliveryControl
impl UnwindSafe for DeliveryControl
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