pub struct PropertiesReport {
pub parameter: u16,
pub alters_capabilities: bool,
pub read_only: bool,
pub format: u8,
pub size: u8,
pub min: i32,
pub max: i32,
pub default: i32,
pub next_parameter: u16,
pub no_bulk_support: Option<bool>,
pub advanced: Option<bool>,
}Expand description
Configuration Properties Report (0x70 0x0f).
Fields§
§parameter: u16The parameter field.
alters_capabilities: boolThe alters_capabilities field (bits 7..8).
read_only: boolThe read_only field (bits 6..7).
format: u8The format field (bits 3..6).
size: u8The size field (bits 0..3).
min: i32The min field.
max: i32The max field.
default: i32The default field.
next_parameter: u16The next_parameter field.
no_bulk_support: Option<bool>The no_bulk_support field (bits 1..2).
advanced: Option<bool>The advanced field (bits 0..1).
Implementations§
Source§impl PropertiesReport
impl PropertiesReport
Sourcepub fn parse(p: &[u8]) -> Result<Self, ParseError>
pub fn parse(p: &[u8]) -> Result<Self, ParseError>
Parses the payload after the command id. Extra trailing bytes (newer versions) are ignored.
Sourcepub fn encode_payload(&self, w: &mut Vec<u8>)
pub fn encode_payload(&self, w: &mut Vec<u8>)
Appends the payload after the command id.
Trait Implementations§
Source§impl Clone for PropertiesReport
impl Clone for PropertiesReport
Source§impl Debug for PropertiesReport
impl Debug for PropertiesReport
Source§impl Default for PropertiesReport
impl Default for PropertiesReport
impl Eq for PropertiesReport
Source§impl From<PropertiesReport> for Command
impl From<PropertiesReport> for Command
Source§fn from(c: PropertiesReport) -> Self
fn from(c: PropertiesReport) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PropertiesReport
impl PartialEq for PropertiesReport
impl StructuralPartialEq for PropertiesReport
Auto Trait Implementations§
impl Freeze for PropertiesReport
impl RefUnwindSafe for PropertiesReport
impl Send for PropertiesReport
impl Sync for PropertiesReport
impl Unpin for PropertiesReport
impl UnsafeUnpin for PropertiesReport
impl UnwindSafe for PropertiesReport
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