pub struct DevicePrioritySetParams {
pub selector: String,
pub priority: u8,
}Expand description
Parameters of DEVICE_PRIORITY_SET.
Fields§
§selector: StringThe device’s name or id.
priority: u80..=255. 0 takes the device out of the election.
Trait Implementations§
Source§impl Clone for DevicePrioritySetParams
impl Clone for DevicePrioritySetParams
Source§impl Debug for DevicePrioritySetParams
impl Debug for DevicePrioritySetParams
Source§impl<'de> Deserialize<'de> for DevicePrioritySetParams
impl<'de> Deserialize<'de> for DevicePrioritySetParams
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 DevicePrioritySetParams
impl RefUnwindSafe for DevicePrioritySetParams
impl Send for DevicePrioritySetParams
impl Sync for DevicePrioritySetParams
impl Unpin for DevicePrioritySetParams
impl UnsafeUnpin for DevicePrioritySetParams
impl UnwindSafe for DevicePrioritySetParams
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