pub struct WeightDevice {
pub path: Option<String>,
pub weight: Option<u16>,
}
Available on crate feature
v5
only.Expand description
WeightDevice is a structure that holds device:weight pair
Fields§
§path: Option<String>
§weight: Option<u16>
Trait Implementations§
Source§impl Debug for WeightDevice
impl Debug for WeightDevice
Source§impl Default for WeightDevice
impl Default for WeightDevice
Source§fn default() -> WeightDevice
fn default() -> WeightDevice
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WeightDevice
impl<'de> Deserialize<'de> for WeightDevice
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 WeightDevice
impl RefUnwindSafe for WeightDevice
impl Send for WeightDevice
impl Sync for WeightDevice
impl Unpin for WeightDevice
impl UnwindSafe for WeightDevice
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