pub struct QualityOfService {
pub max_latency: u64,
pub reliability: f64,
pub bandwidth: u64,
pub encryption: bool,
}
Expand description
Quality of service parameters
Fieldsยง
ยงmax_latency: u64
Maximum acceptable latency (nanoseconds)
reliability: f64
Reliability requirement (0.0-1.0)
bandwidth: u64
Bandwidth requirement (bytes/second)
encryption: bool
Encryption requirement
Trait Implementationsยง
Sourceยงimpl Clone for QualityOfService
impl Clone for QualityOfService
Sourceยงfn clone(&self) -> QualityOfService
fn clone(&self) -> QualityOfService
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 QualityOfService
impl Debug for QualityOfService
Sourceยงimpl<'de> Deserialize<'de> for QualityOfService
impl<'de> Deserialize<'de> for QualityOfService
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
Auto Trait Implementationsยง
impl Freeze for QualityOfService
impl RefUnwindSafe for QualityOfService
impl Send for QualityOfService
impl Sync for QualityOfService
impl Unpin for QualityOfService
impl UnwindSafe for QualityOfService
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