Enum playdate_device::device::command::Command
source · pub enum Command {
Run {
path: String,
},
RunSystem {
path: SystemPath,
},
Datadisk,
Hibernate,
Echo {
value: Switch,
},
SerialNumber,
Version,
Button {
button: Button,
},
Message {
message: String,
},
Custom {
cmd: String,
},
}Variants§
Run
Run custom pdx.
Fields
RunSystem
Run system built-in pdx,
Fields
§
path: SystemPathSystem built-in application,
Datadisk
Reboot into data segment USB disk
Hibernate
Hibernate, semi-deep sleep mode.
Echo
Turn console echo on or off.
SerialNumber
Request the device serial number.
Version
Request the device version info.
Button
Simulate a button press.
+a/-a/a for down/up/both
Fields
Button to press or release.
Message
Send a message to a message handler in the current running program.
Custom
Send custom command.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
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