pub enum Mode {
Run {
src: CompactString,
role: Option<CompactString>,
server: CompactString,
},
Dump {
src: CompactString,
role: Option<CompactString>,
},
Start {
server: CompactString,
addr: CompactString,
port: u16,
},
}
Expand description
Standard NetsBlox VM project actions that can be performed
Variants§
Run
Compiles and runs a single project file
Fields
§
src: CompactString
Path to the (xml) project file
§
role: Option<CompactString>
The specific role to run, or none if not ambiguous
§
server: CompactString
Address of the NetsBlox server
Dump
Compiles a single project file and dumps its disassembly to stdout
Fields
§
src: CompactString
Path to the (xml) project file
§
role: Option<CompactString>
The specific role to compile, or none if not ambiguous
Start
Starts an execution server which you can connect to from the browser
Fields
§
server: CompactString
Address of the NetsBlox server
§
addr: CompactString
The address of this machine, which others use to send HTTP requests
Trait Implementations§
Source§impl FromArgMatches for Mode
impl FromArgMatches for Mode
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.Source§impl Subcommand for Mode
impl Subcommand for Mode
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Append to
Command
so it can instantiate self
via
FromArgMatches::update_from_arg_matches_mut
Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self
can parse a specific subcommandAuto Trait Implementations§
impl Freeze for Mode
impl RefUnwindSafe for Mode
impl Send for Mode
impl Sync for Mode
impl Unpin for Mode
impl UnwindSafe for Mode
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