pub struct SupportedGet {}Expand description
Meter Supported Get (0x32 0x03).
Implementations§
Source§impl SupportedGet
impl SupportedGet
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 SupportedGet
impl Clone for SupportedGet
Source§impl Debug for SupportedGet
impl Debug for SupportedGet
Source§impl Default for SupportedGet
impl Default for SupportedGet
impl Eq for SupportedGet
Source§impl From<SupportedGet> for Command
impl From<SupportedGet> for Command
Source§fn from(c: SupportedGet) -> Self
fn from(c: SupportedGet) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SupportedGet
impl PartialEq for SupportedGet
impl StructuralPartialEq for SupportedGet
Auto Trait Implementations§
impl Freeze for SupportedGet
impl RefUnwindSafe for SupportedGet
impl Send for SupportedGet
impl Sync for SupportedGet
impl Unpin for SupportedGet
impl UnsafeUnpin for SupportedGet
impl UnwindSafe for SupportedGet
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