pub struct PropertiesGet {
pub parameter: u16,
}Expand description
Configuration Properties Get (0x70 0x0e).
Fields§
§parameter: u16The parameter field.
Implementations§
Source§impl PropertiesGet
impl PropertiesGet
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 PropertiesGet
impl Clone for PropertiesGet
Source§impl Debug for PropertiesGet
impl Debug for PropertiesGet
Source§impl Default for PropertiesGet
impl Default for PropertiesGet
impl Eq for PropertiesGet
Source§impl From<PropertiesGet> for Command
impl From<PropertiesGet> for Command
Source§fn from(c: PropertiesGet) -> Self
fn from(c: PropertiesGet) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PropertiesGet
impl PartialEq for PropertiesGet
impl StructuralPartialEq for PropertiesGet
Auto Trait Implementations§
impl Freeze for PropertiesGet
impl RefUnwindSafe for PropertiesGet
impl Send for PropertiesGet
impl Sync for PropertiesGet
impl Unpin for PropertiesGet
impl UnsafeUnpin for PropertiesGet
impl UnwindSafe for PropertiesGet
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