Module peel_ip::prelude
[−]
[src]
Provides sensible imports for packet parsers
Reexports
pub use nom::*; |
pub use peel::prelude::*; |
pub use super::NewPeelIp; |
pub use layer1::*; |
pub use layer1::ethernet::*; |
pub use layer1::arp::*; |
pub use layer2::*; |
pub use layer2::ipv4::*; |
pub use layer2::ipv6::*; |
pub use layer2::icmp::*; |
pub use layer2::icmpv6::*; |
pub use layer3::*; |
pub use layer3::tcp::*; |
pub use layer3::tls::*; |
pub use layer3::udp::*; |
pub use layer4::http::*; |
pub use layer4::ntp::*; |
Modules
fmt |
Utilities for formatting and printing |
str |
Unicode string slices. |
Macros
add_return_error |
Add an error if the child parser fails |
alt |
|
alt_complete |
This is a combination of the |
apply |
emulate function currying: |
apply_m |
emulate function currying for method calls on structs
|
bits |
|
call |
Used to wrap common expressions and function as macros |
call_m |
Used to called methods then move self back into self |
chain |
[DEPRECATED] |
char |
matches one character: `char!(char) => &[u8] -> IResult<&[u8], char> |
closure |
Wraps a parser in a closure |
complete |
replaces a |
cond |
|
cond_reduce |
|
cond_with_error |
|
consumer_from_parser | |
count |
|
count_fixed |
|
dbg |
Prints a message if the parser fails |
dbg_dmp |
Prints a message and the input if the parser fails |
delimited |
|
do_parse |
|
eat_separator |
helper macros to build a separator parser |
eof |
|
error_code |
creates a parse error from a |
error_node |
creates a parse error from a |
error_node_position |
creates a parse error from a |
error_position |
creates a parse error from a |
escaped |
|
escaped_transform |
|
expr_opt |
|
expr_res |
|
fix_error |
translate parser result from IResult to IResult with a custom type |
flat_map |
|
fold_many0 |
|
fold_many1 |
|
fold_many_m_n |
|
i16 |
if the parameter is nom::Endianness::Big, parse a big endian i16 integer, otherwise a little endian i16 integer |
i32 |
if the parameter is nom::Endianness::Big, parse a big endian i32 integer, otherwise a little endian i32 integer |
i64 |
if the parameter is nom::Endianness::Big, parse a big endian i64 integer, otherwise a little endian i64 integer |
is_a |
|
is_a_s |
|
is_not |
|
is_not_s |
|
length_bytes |
|
length_count |
|
length_data |
|
length_value |
|
many0 |
|
many1 |
|
many_m_n |
|
many_till |
|
map |
|
map_opt |
|
map_res |
|
method |
Makes a method from a parser combination |
named |
Makes a function from a parser combination |
named_args |
Makes a function from a parser combination with arguments. |
named_attr |
Makes a function from a parser combination, with attributes |
none_of |
matches anything but the provided characters |
not |
|
one_of |
matches one of the provided characters |
opt |
|
opt_res |
|
pair |
|
parse_to |
|
peek |
|
permutation |
|
preceded |
|
recognize |
|
return_error |
Prevents backtracking if the child parser fails |
sep |
sep is the parser rewriting macro for whitespace separated formats |
separated_list |
|
separated_nonempty_list |
|
separated_pair |
|
switch |
|
tag |
|
tag_bits |
matches an integer pattern to a bitstream. The number of bits of the input to compare must be specified |
tag_no_case |
|
tag_no_case_s |
|
tag_s |
|
take |
|
take_bits |
|
take_s |
|
take_str |
|
take_till |
|
take_till_s |
|
take_until |
|
take_until_and_consume |
|
take_until_and_consume_s |
|
take_until_either |
|
take_until_either_and_consume |
|
take_until_s |
|
take_while |
|
take_while1 |
|
take_while1_s |
|
take_while_s |
|
tap |
|
terminated |
|
try_parse |
A bit like |
tuple |
|
u16 |
if the parameter is nom::Endianness::Big, parse a big endian u16 integer, otherwise a little endian u16 integer |
u32 |
if the parameter is nom::Endianness::Big, parse a big endian u32 integer, otherwise a little endian u32 integer |
u64 |
if the parameter is nom::Endianness::Big, parse a big endian u64 integer, otherwise a little endian u64 integer |
value |
|
verify |
|
wrap_sep | |
ws |
|
Structs
Connection |
Connection representation |
Data |
Identifies the connection |
Identifier |
Identifies the connection |
Ipv4Addr |
Representation of an IPv4 address. |
Ipv6Addr |
Representation of an IPv6 address. |
Path |
Global connection tracking structure |
Enums
IpAddr |
An IP address, either an IPv4 or IPv6 address. |
LogLevel |
An enum representing the available verbosity levels of the logging framework |
PathErrorType |
Error codes as indicator what happened |
Traits
Error |
Base functionality for all errors in Rust. |
FromStr |
A trait to abstract the idea of creating a new instance of a type from a string. |
Type Definitions
PathIp |
A shorthand for the |
PeelIp |
A shorthand for the TCP/IP based |