pub struct ASGIServerCommand { /* private fields */ }Expand description
The ASGIServerCommand.
Exposes options to the command line to set the port and host of the server.
Implementations
Trait Implementations
sourceimpl RunnableCommand for ASGIServerCommand
impl RunnableCommand for ASGIServerCommand
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 ASGIServerCommand
impl !Send for ASGIServerCommand
impl !Sync for ASGIServerCommand
impl Unpin for ASGIServerCommand
impl !UnwindSafe for ASGIServerCommand
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