pub struct FreeCommand {
pub target: String,
pub yes: bool,
pub dry_run: bool,
pub json: bool,
pub verbose: bool,
pub wait: u64,
}Expand description
Free port(s) by killing the process and verifying the port is available
Fields§
§target: StringPort target(s): :port (comma-separated for multiple, e.g. :3000,:8080)
yes: boolSkip confirmation prompt
dry_run: boolShow what would be freed without actually freeing
json: boolOutput as JSON
verbose: boolShow verbose output
wait: u64Max seconds to wait for port to become free
Implementations§
Trait Implementations§
Source§impl Args for FreeCommand
impl Args for FreeCommand
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Debug for FreeCommand
impl Debug for FreeCommand
Source§impl FromArgMatches for FreeCommand
impl FromArgMatches for FreeCommand
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(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for FreeCommand
impl RefUnwindSafe for FreeCommand
impl Send for FreeCommand
impl Sync for FreeCommand
impl Unpin for FreeCommand
impl UnsafeUnpin for FreeCommand
impl UnwindSafe for FreeCommand
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