pub trait Sendable {
// Required methods
fn as_bytes(&self) -> &'static [u8] ⓘ;
fn response_value_bytes(&self) -> &'static [u8] ⓘ;
}
Expand description
Behavior that a datatype must implement in order to be sent to a GoPro device
Required Methods§
Implementors§
impl Sendable for GoProCommand
Implement Sendable for all GoProCommands generically to avoid the duplicate code of also implementing it for references to GoProCommands
NOTE: The byte arrays in this implementation were taken directly from the GoPro Open Spec: https://gopro.github.io/OpenGoPro/ble_2_0#commands-quick-reference