pub enum GoProCommand {
ShutterStart,
ShutterStop,
Sleep,
AddHilightDuringEncoding,
VideoMode,
PhotoMode,
TimelapseMode,
}
Expand description
Represents a command that can be sent to a GoPro device
§NOTE
The byte arrays in this enum were taken directly from the GoPro Open Spec:
https://gopro.github.io/OpenGoPro/ble_2_0#commands-quick-reference
Variants§
Trait Implementations§
Source§impl AsRef<GoProCommand> for GoProCommand
Implement AsRef for GoProCommands so that relevant functions
can take a GoProCommand by reference or by value
impl AsRef<GoProCommand> for GoProCommand
Implement AsRef for GoProCommands so that relevant functions can take a GoProCommand by reference or by value
Source§fn as_ref(&self) -> &GoProCommand
fn as_ref(&self) -> &GoProCommand
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Sendable for GoProCommand
Implement Sendable for all GoProCommands generically
to avoid the duplicate code of also implementing it
for references to GoProCommands
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
Auto Trait Implementations§
impl Freeze for GoProCommand
impl RefUnwindSafe for GoProCommand
impl Send for GoProCommand
impl Sync for GoProCommand
impl Unpin for GoProCommand
impl UnwindSafe for GoProCommand
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