#[non_exhaustive]pub enum ControlCommand {
SetPosition {
seek_mode: SeekMode,
seek_position: i32,
},
SetSpeed {
speed: i16,
},
Reserved(u8),
}Expand description
The Command-selected payload of CICAM_player_control_req (Tables 60/61).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
SetPosition
command == 0x01 — Set position.
Fields
SetSpeed
command == 0x02 — Set speed.
Reserved(u8)
Reserved/unknown command value with no further payload (e.g. 0x00).
Implementations§
Trait Implementations§
Source§impl Clone for ControlCommand
impl Clone for ControlCommand
Source§fn clone(&self) -> ControlCommand
fn clone(&self) -> ControlCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ControlCommand
Source§impl Debug for ControlCommand
impl Debug for ControlCommand
impl Eq for ControlCommand
Source§impl PartialEq for ControlCommand
impl PartialEq for ControlCommand
Source§impl Serialize for ControlCommand
impl Serialize for ControlCommand
impl StructuralPartialEq for ControlCommand
Auto Trait Implementations§
impl Freeze for ControlCommand
impl RefUnwindSafe for ControlCommand
impl Send for ControlCommand
impl Sync for ControlCommand
impl Unpin for ControlCommand
impl UnsafeUnpin for ControlCommand
impl UnwindSafe for ControlCommand
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