pub struct ServerCommand(_);Expand description
The ServerCommand.
Exposes options to the command line to set the port and host of the server.
Implementations
sourceimpl ServerCommand
impl ServerCommand
Trait Implementations
sourceimpl RunnableCommand for ServerCommand
impl RunnableCommand for ServerCommand
sourcefn cli_parser(&self) -> Command
fn cli_parser(&self) -> Command
The clap::Command that specifies the arguments and meta information.
sourcefn make_runnable(
&mut self,
args: &ArgMatches,
context: PuffContext
) -> Result<Runnable>
fn make_runnable(
&mut self,
args: &ArgMatches,
context: PuffContext
) -> Result<Runnable>
Converts parsed matches from the command line into a Runnable future.
Auto Trait Implementations
impl !RefUnwindSafe for ServerCommand
impl !Send for ServerCommand
impl !Sync for ServerCommand
impl Unpin for ServerCommand
impl !UnwindSafe for ServerCommand
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more