pub struct EndPointFind {
pub generic: u8,
pub specific: u8,
}Expand description
Multi Channel End Point Find (0x60 0x0b).
Fields§
§generic: u8The generic field.
specific: u8The specific field.
Implementations§
Source§impl EndPointFind
impl EndPointFind
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 EndPointFind
impl Clone for EndPointFind
Source§impl Debug for EndPointFind
impl Debug for EndPointFind
Source§impl Default for EndPointFind
impl Default for EndPointFind
impl Eq for EndPointFind
Source§impl From<EndPointFind> for Command
impl From<EndPointFind> for Command
Source§fn from(c: EndPointFind) -> Self
fn from(c: EndPointFind) -> Self
Converts to this type from the input type.
Source§impl PartialEq for EndPointFind
impl PartialEq for EndPointFind
impl StructuralPartialEq for EndPointFind
Auto Trait Implementations§
impl Freeze for EndPointFind
impl RefUnwindSafe for EndPointFind
impl Send for EndPointFind
impl Sync for EndPointFind
impl Unpin for EndPointFind
impl UnsafeUnpin for EndPointFind
impl UnwindSafe for EndPointFind
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