Enum jamsocket::SubCommand [−]
pub(crate) enum SubCommand {
Serve(ServeCommand),
Dev,
}Variants
Run a dev server to host a given Jamsocket module.
Trait Implementations
impl FromArgMatches for SubCommand
impl FromArgMatches for SubCommand
pub fn from_arg_matches(arg_matches: &ArgMatches) -> Option<SubCommand>
pub fn from_arg_matches(arg_matches: &ArgMatches) -> Option<SubCommand>
Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
pub fn update_from_arg_matches(&mut self, arg_matches: &ArgMatches)
pub fn update_from_arg_matches(&mut self, arg_matches: &ArgMatches)
Assign values from ArgMatches to self.
impl IntoApp for SubCommand
impl IntoApp for SubCommand
impl Parser for SubCommand
impl Parser for SubCommand
fn parse_from<I, T>(itr: I) -> Self where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn parse_from<I, T>(itr: I) -> Self where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Parse from iterator, exit on error
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Parse from iterator, return Err on error.
fn update_from<I, T>(&mut self, itr: I) where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn update_from<I, T>(&mut self, itr: I) where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Update from iterator, exit on error
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Update from iterator, return Err on error.
impl Subcommand for SubCommand
impl Subcommand for SubCommand
pub fn augment_subcommands(app: App<'b>) -> App<'b>
pub fn augment_subcommands(app: App<'b>) -> App<'b>
pub fn augment_subcommands_for_update(app: App<'b>) -> App<'b>
pub fn augment_subcommands_for_update(app: App<'b>) -> App<'b>
pub fn has_subcommand(name: &str) -> bool
pub fn has_subcommand(name: &str) -> bool
Test whether Self can parse a specific subcommand
Auto Trait Implementations
impl RefUnwindSafe for SubCommand
impl Send for SubCommand
impl Sync for SubCommand
impl Unpin for SubCommand
impl UnwindSafe for SubCommand
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn get_fd_flags(&self) -> Result<FdFlags, Error> where
T: AsFilelike,
pub fn get_fd_flags(&self) -> Result<FdFlags, Error> where
T: AsFilelike,
Query the “status” flags for the self file descriptor.
pub fn new_set_fd_flags(
&self,
fd_flags: FdFlags
) -> Result<SetFdFlags<T>, Error> where
T: AsFilelike,
pub fn new_set_fd_flags(
&self,
fd_flags: FdFlags
) -> Result<SetFdFlags<T>, Error> where
T: AsFilelike,
Create a new SetFdFlags value for use with set_fd_flags. Read more
pub fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error> where
T: AsFilelike,
pub fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error> where
T: AsFilelike,
Set the “status” flags for the self file descriptor. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more