pub struct PortsCommand {
pub filter: Option<String>,
pub exposed: bool,
pub local: bool,
pub json: bool,
pub verbose: bool,
pub sort: String,
}Expand description
List all listening ports
Fields§
§filter: Option<String>Filter by process name
exposed: boolOnly show network-exposed ports (0.0.0.0, ::)
local: boolOnly show localhost ports (127.0.0.1, ::1)
json: boolOutput as JSON
verbose: boolShow verbose output (includes executable path)
sort: StringSort by: port, pid, name
Implementations§
Trait Implementations§
Source§impl Args for PortsCommand
impl Args for PortsCommand
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 PortsCommand
impl Debug for PortsCommand
Source§impl FromArgMatches for PortsCommand
impl FromArgMatches for PortsCommand
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 PortsCommand
impl RefUnwindSafe for PortsCommand
impl Send for PortsCommand
impl Sync for PortsCommand
impl Unpin for PortsCommand
impl UnwindSafe for PortsCommand
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