#[non_exhaustive]pub enum Op {
Show 37 variants
Connect,
Sync,
Transact(Command),
Run(String),
List,
Path,
Cd(Vec<String>),
Updir,
Mkdir(String),
Remove(String),
Rename {
from: String,
to: String,
},
Mem,
Version,
Model,
Iopar,
SetIopar(Iopar),
TransferMode,
SetTransferMode(TransferMode),
Get {
name: String,
mode: TransferMode,
},
Put {
name: String,
data: Vec<u8>,
mode: TransferMode,
},
Pict,
PictFile,
Backup,
Restore(Vec<u8>),
RestoreLeaving {
data: Vec<u8>,
mode: TransferMode,
},
PurgeRestoreLeftover,
Finish,
PrepareXmodem {
direction: XmodemDirection,
name: String,
},
XmodemSend {
data: Vec<u8>,
options: XmodemOptions,
},
XmodemReceive {
options: XmodemOptions,
},
XservProbe(Duration),
XservList,
XservMemory,
XservExecute(String),
XservGet {
name: String,
options: XmodemOptions,
},
XservPut {
name: String,
data: Vec<u8>,
options: XmodemOptions,
},
XservQuit,
}Expand description
One operation of a Machine; each is the
Calculator or
XmodemSession method of the same name, and
its result is the Reply variant named.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Connect
Discard input for Options::drain (stale NAKs of the idle
server), then Op::Sync: the start of every connection.
Reply::Done.
Sync
Transact(Command)
One raw Kermit transaction. Reply::Transcript.
Run(String)
A host command. Reply::Stack.
List
Path
Cd(Vec<String>)
Change to an absolute directory path. Reply::Done.
Updir
Mkdir(String)
Remove(String)
Rename
Mem
Free memory. Reply::Real.
Version
Model
Iopar
SetIopar(Iopar)
TransferMode
SetTransferMode(TransferMode)
Get
GET a variable. Reply::Data.
Put
SEND a variable. Reply::Stored.
Fields
mode: TransferModeThe transfer mode.
Pict
PictFile
PICT as the binary transfer file the calculator sent (a GROB).
Reply::Data.
Backup
Restore(Vec<u8>)
RestoreLeaving
Op::Restore with flag -35 set to mode just before RESTORE
(the calculator keeps its flags through it). Reply::Done.
PurgeRestoreLeftover
Finish
End server mode (G F). Reply::Done.
PrepareXmodem
XmodemSend
Send a file to a calculator running XRECV. Reply::XmodemSent.
Fields
options: XmodemOptionsThe XModem options (see XmodemOptions::for_model).
XmodemReceive
Receive a file from a calculator running XSEND.
Reply::XmodemReceived.
Fields
options: XmodemOptionsThe XModem options (see XmodemOptions::for_model).
XservProbe(Duration)
XSERV: send M once and wait this long for the answer (see
xserv::memory_reply). Reply::XservProbe.
XservList
XSERV L. Reply::XservListing.
XservMemory
XSERV M. Reply::Real.
XservExecute(String)
XSERV E: run RPL text; nothing comes back. Reply::Done.
XservGet
XSERV G, then XModem. Reply::XmodemReceived.
Fields
options: XmodemOptionsThe XModem options (see xserv::transfer_options).
XservPut
XSERV P, then XModem. Reply::XmodemSent.
Fields
options: XmodemOptionsThe XModem options (see xserv::transfer_options).
XservQuit
XSERV Q, then M once. Reply::XservQuit.