pub struct OutputLinkStats {
pub connection_descriptor: u8,
pub bytes_produced: u32,
pub bytes_sent: u32,
pub nr_clients: u8,
pub output_types: Vec<OutputType>,
/* private fields */
}Expand description
Output link statistics entry
Fields§
§connection_descriptor: u8Connection descriptor
bytes_produced: u32Bytes produced
bytes_sent: u32Bytes sent
nr_clients: u8Number of clients
output_types: Vec<OutputType>Output types
Implementations§
Source§impl OutputLinkStats
impl OutputLinkStats
Sourcepub fn allowed_rate_kbytes_per_s(&self) -> u16
pub fn allowed_rate_kbytes_per_s(&self) -> u16
Allowed rate in kbyte/s (as provided by the block).
Sourcepub fn allowed_rate_bytes_per_s(&self) -> u32
pub fn allowed_rate_bytes_per_s(&self) -> u32
Allowed rate in bytes/s (decimal kilobytes).
Sourcepub fn allowed_rate_bps(&self) -> Option<u16>
pub fn allowed_rate_bps(&self) -> Option<u16>
Legacy accessor kept for compatibility.
The name is historical; it returns the raw AllowedRate value (kbyte/s),
wrapped in Some because this field has no documented DNU sentinel.
pub fn allowed_rate_raw(&self) -> u16
Trait Implementations§
Source§impl Clone for OutputLinkStats
impl Clone for OutputLinkStats
Source§fn clone(&self) -> OutputLinkStats
fn clone(&self) -> OutputLinkStats
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 moreAuto Trait Implementations§
impl Freeze for OutputLinkStats
impl RefUnwindSafe for OutputLinkStats
impl Send for OutputLinkStats
impl Sync for OutputLinkStats
impl Unpin for OutputLinkStats
impl UnsafeUnpin for OutputLinkStats
impl UnwindSafe for OutputLinkStats
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