pub struct ThrottleDevice {
pub path: Option<String>,
pub rate: Option<u64>,
}
Available on crate feature
v5
only.Expand description
ThrottleDevice is a structure that holds device:rate_per_second pair
Fields§
§path: Option<String>
§rate: Option<u64>
Trait Implementations§
Source§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
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