pub struct AnalyzeCommandArgs {
pub file: PathBuf,
pub field: Option<String>,
pub include: Vec<AddressPredicate>,
pub exclude: Vec<AddressPredicate>,
pub unique: bool,
pub analysis: AnalyzeCommand,
}Fields§
§file: PathBufPath to file containing data to analyze
field: Option<String>Column name to select from input data
include: Vec<AddressPredicate>Include addresses matching these predicates (can be specified multiple times)
exclude: Vec<AddressPredicate>Exclude addresses matching these predicates (can be specified multiple times)
unique: boolRemove duplicate addresses from input dataset before analysis
analysis: AnalyzeCommandAnalysis subcommand to run
Implementations§
Source§impl AnalyzeCommandArgs
impl AnalyzeCommandArgs
pub fn new( file: PathBuf, field: Option<String>, include: Vec<AddressPredicate>, exclude: Vec<AddressPredicate>, unique: bool, analysis: AnalyzeCommand, ) -> Self
async fn load_and_filter_addresses(&self) -> Result<Vec<Ipv6Addr>, String>
fn apply_predicates( &self, addresses: Vec<Ipv6Addr>, ) -> Result<Vec<Ipv6Addr>, String>
fn analyze_dispersion( &self, addresses: &[Ipv6Addr], ) -> Result<DataStreamResult, String>
fn analyze_entropy( &self, addresses: &[Ipv6Addr], start_bit: u8, end_bit: u8, ) -> Result<DataStreamResult, String>
fn analyze_subnets( &self, addresses: &[Ipv6Addr], max_subnets: usize, prefix_length: u8, ) -> Result<DataStreamResult, String>
fn analyze_counts( &self, addresses: &[Ipv6Addr], ) -> Result<DataStreamResult, String>
Trait Implementations§
Source§impl Args for AnalyzeCommandArgs
impl Args for AnalyzeCommandArgs
Source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
Report the [
ArgGroup::id][crate::ArgGroup::id] for this set of argumentsSource§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 Command for AnalyzeCommandArgs
impl Command for AnalyzeCommandArgs
Source§impl CommandFactory for AnalyzeCommandArgs
impl CommandFactory for AnalyzeCommandArgs
Source§impl<'de> Deserialize<'de> for AnalyzeCommandArgs
impl<'de> Deserialize<'de> for AnalyzeCommandArgs
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromArgMatches for AnalyzeCommandArgs
impl FromArgMatches for AnalyzeCommandArgs
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.Source§impl Parser for AnalyzeCommandArgs
impl Parser for AnalyzeCommandArgs
§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, [exit][Error::exit] on error.
§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Update from iterator, [exit][Error::exit] on error. Read more
§fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
Update from iterator, return Err on error.
Auto Trait Implementations§
impl Freeze for AnalyzeCommandArgs
impl RefUnwindSafe for AnalyzeCommandArgs
impl Send for AnalyzeCommandArgs
impl Sync for AnalyzeCommandArgs
impl Unpin for AnalyzeCommandArgs
impl UnwindSafe for AnalyzeCommandArgs
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request