pub struct QueryResponse {
pub message_length: u16,
pub query_id: u8,
pub command_status: u8,
pub status_id: u8,
pub status_value_length: u8,
pub status_value: Vec<u8>,
}
Expand description
Represents the response to a query sent to a GoPro device
Fields§
§message_length: u16
§query_id: u8
The query id that was sent
command_status: u8
§status_id: u8
The status id that was queried
status_value_length: u8
§status_value: Vec<u8>
The actual value that the caller is interested in
Implementations§
Source§impl QueryResponse
impl QueryResponse
pub fn deserialize(data: &[u8]) -> Result<Self, &'static str>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for QueryResponse
impl RefUnwindSafe for QueryResponse
impl Send for QueryResponse
impl Sync for QueryResponse
impl Unpin for QueryResponse
impl UnwindSafe for QueryResponse
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