pub struct ThrottleDevice {
pub path: Option<String>,
pub rate: Option<i32>,
}
Expand description
ThrottleDevice : ThrottleDevice is a structure that holds device:rate_per_second pair
Fields§
§path: Option<String>
§rate: Option<i32>
Implementations§
Source§impl ThrottleDevice
impl ThrottleDevice
Sourcepub fn new() -> ThrottleDevice
pub fn new() -> ThrottleDevice
ThrottleDevice is a structure that holds device:rate_per_second pair
Trait Implementations§
Source§impl Clone for ThrottleDevice
impl Clone for ThrottleDevice
Source§fn clone(&self) -> ThrottleDevice
fn clone(&self) -> ThrottleDevice
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 ThrottleDevice
impl Debug for ThrottleDevice
Source§impl Default for ThrottleDevice
impl Default for ThrottleDevice
Source§fn default() -> ThrottleDevice
fn default() -> ThrottleDevice
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ThrottleDevice
impl<'de> Deserialize<'de> for ThrottleDevice
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
Source§impl PartialEq for ThrottleDevice
impl PartialEq for ThrottleDevice
Source§impl Serialize for ThrottleDevice
impl Serialize for ThrottleDevice
impl StructuralPartialEq for ThrottleDevice
Auto Trait Implementations§
impl Freeze for ThrottleDevice
impl RefUnwindSafe for ThrottleDevice
impl Send for ThrottleDevice
impl Sync for ThrottleDevice
impl Unpin for ThrottleDevice
impl UnwindSafe for ThrottleDevice
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