pub enum Responses {
Ack,
Read {
addr: Addr,
data: Vec<Value>,
},
MemoryData(MemoryView),
FloatData(FloatView),
HardwareId {
payload: BytesWrap,
},
FirLoadSize {
size: u16,
},
ConfigChanged,
Unk02,
Unknown {
cmd_id: u8,
payload: BytesWrap,
},
}
Variants§
Ack
Read
MemoryData(MemoryView)
FloatData(FloatView)
HardwareId
FirLoadSize
ConfigChanged
Speculative commands
Unk02
Unknown
Implementations§
Source§impl Responses
impl Responses
pub fn from_bytes(frame: Bytes) -> Result<Responses, ProtocolError>
pub fn to_bytes(&self) -> Bytes
pub fn is_memory_view(&self) -> bool
pub fn into_memory_view(self) -> Result<MemoryView, ProtocolError>
pub fn is_float_view(&self) -> bool
pub fn into_float_view(self) -> Result<FloatView, ProtocolError>
pub fn is_hardware_id(&self) -> bool
pub fn into_hardware_id(self) -> Result<u8, ProtocolError>
pub fn is_ack(&self) -> bool
pub fn into_ack(self) -> Result<(), ProtocolError>
pub fn is_config_changed(&self) -> bool
pub fn into_config_changed(self) -> Result<(), ProtocolError>
pub fn is_fir_size(&self) -> bool
pub fn into_fir_size(self) -> Result<u16, ProtocolError>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Responses
impl RefUnwindSafe for Responses
impl Send for Responses
impl Sync for Responses
impl Unpin for Responses
impl UnwindSafe for Responses
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