IPProtocol

Struct IPProtocol 

Source
pub struct IPProtocol { /* private fields */ }
Expand description

IPProtocol

Implementations§

Source§

impl IPProtocol

Source

pub const HOPOPT: Self

IPv6 Hop-by-Hop Option

Source

pub const ICMP: Self

Internet Control Message Protocol

Source

pub const IGMP: Self

Internet Group Management Protocol

Source

pub const GGP: Self

Gateway-to-Gateway Protocol

Source

pub const IP_IN_IP: Self

IP in IP

Source

pub const ST: Self

Internet Stream Protocol

Source

pub const TCP: Self

Transmission Control Protocol

Source

pub const CBT: Self

Core-based trees

Source

pub const EGP: Self

Exterior Gateway Protocol

Source

pub const IGP: Self

Interior Gateway Protocol

Source

pub const BBN_RCC_MON: Self

BBN RCC Monitoring

Source

pub const NVP_II: Self

Network Voice Protocol

Source

pub const PUP: Self

Xerox PUP

Source

pub const ARGUS: Self

ARGUS

Source

pub const EMCON: Self

EMCON

Source

pub const XNET: Self

Cross Net Debugger

Source

pub const CHAOS: Self

Chaos

Source

pub const UDP: Self

User Datagram Protocol

Source

pub const MUX: Self

Multiplexing

Source

pub const DCN_MEAS: Self

DCN Measurement Subsystems

Source

pub const HMP: Self

Host Monitoring Protocol

Source

pub const PRM: Self

Packet Radio Measurement

Source

pub const XNS_IDP: Self

XEROX NS IDP

Source

pub const TRUNK_1: Self

Trunk-1

Source

pub const TRUNK_2: Self

Trunk-2

Source

pub const LEAF_1: Self

Leaf-1

Source

pub const LEAF_2: Self

Leaf-2

Source

pub const RDP: Self

Reliable Data Protocol

Source

pub const IRTP: Self

Internet Reliable Transaction Protocol

Source

pub const ISO_TP4: Self

ISO Transport Protocol Class 4

Source

pub const NETBLT: Self

Bulk Data Transfer Protocol

Source

pub const MFE_NSP: Self

MFE Network Services Protocol

Source

pub const MERIT_INP: Self

MERIT Internodal Protocol

Source

pub const DCCP: Self

Datagram Congestion Control Protocol

Source

pub const PC3: Self

Third Party Connect Protocol

Source

pub const IDPR: Self

Inter-Domain Policy Routing Protocol

Source

pub const XTP: Self

Xpress Transport Protocol

Source

pub const DDP: Self

Datagram Delivery Protocol

Source

pub const IDPR_CMTP: Self

IDPR Control Message Transport Protocol

Source

pub const TP: Self

TP++ Transport Protocol

Source

pub const IL: Self

IL Transport Protocol

Source

pub const IPV6: Self

IPv6 Encapsulation

Source

pub const SDRP: Self

Source Demand Routing Protocol

Source

pub const IPV6_ROUTE: Self

Routing Header for IPv6

Source

pub const IPV6_FRAG: Self

Fragment Header for IPv6

Source

pub const IDRP: Self

Inter-Domain Routing Protocol

Source

pub const RSVP: Self

Resource Reservation Protocol

Source

pub const GRE: Self

Generic Routing Encapsulation

Source

pub const DSR: Self

Dynamic Source Routing Protocol

Source

pub const BNA: Self

Burroughs Network Architecture

Source

pub const ESP: Self

Encapsulating Security Payload

Source

pub const AH: Self

Authentication Header

Source

pub const I_NLSP: Self

Integrated Net Layer Security Protocol

Source

pub const SWIPE: Self

SwIPe

Source

pub const NARP: Self

NBMA Address Resolution Protocol

Source

pub const MOBILE: Self

IP Mobility (Min Encap)

Source

pub const TLSP: Self

Transport Layer Security Protocol (using Kryptonet key management)

Source

pub const SKIP: Self

Simple Key-Management for Internet Protocol

Source

pub const ICMP_6: Self

ICMP for IPv6

Source

pub const NO_NXT_6: Self

No Next Header for IPv6

Source

pub const OPTS_6: Self

Destination Options for IPv6

Source

pub const AHIP: Self

Any host internal protocol

Source

pub const CFTP: Self

CFTP

Source

pub const ALN: Self

Any local network

Source

pub const SAT_EXPAK: Self

SATNET and Backroom EXPAK

Source

pub const KRYPTOLAN: Self

Kryptolan

Source

pub const RVD: Self

MIT Remote Virtual Disk Protocol

Source

pub const IPPC: Self

Internet Pluribus Packet Core

Source

pub const ADFS: Self

Any distributed file system

Source

pub const SAT_MON: Self

SATNET Monitoring

Source

pub const VISA: Self

VISA Protocol

Source

pub const IPCU: Self

Internet Packet Core Utility

Source

pub const CPNX: Self

Computer Protocol Network Executive

Source

pub const CPHB: Self

Computer Protocol Heart Beat

Source

pub const WSN: Self

Wang Span Network

Source

pub const PVP: Self

Packet Video Protocol

Source

pub const BR_SAT_MON: Self

Backroom SATNET Monitoring

Source

pub const SUN_ND: Self

SUN ND PROTOCOL-Temporary

Source

pub const WB_MON: Self

WIDEBAND Monitoring

Source

pub const WB_EXPAK: Self

WIDEBAND EXPAK

Source

pub const ISO_IP: Self

International Organization for Standardization Internet Protocol

Source

pub const VMTP: Self

Versatile Message Transaction Protocol

Source

pub const SECURE_VMTP: Self

Secure Versatile Message Transaction Protocol

Source

pub const VINES: Self

VINES

Source

pub const TTP_OR_IPTM: Self

TTP or Internet Protocol Traffic Manager

Source

pub const NSFNET_IGP: Self

NSFNET-IGP

Source

pub const DGP: Self

Dissimilar Gateway Protocol

Source

pub const TCF: Self

TCF

Source

pub const EIGRP: Self

EIGRP

Source

pub const OSPF: Self

Open Shortest Path First

Source

pub const SPRITE_RPC: Self

Sprite RPC Protocol

Source

pub const LARP: Self

Locus Address Resolution Protocol

Source

pub const MTP: Self

Multicast Transport Protocol

Source

pub const AX25: Self

AX.25

Source

pub const OS: Self

KA9Q NOS compatible IP over IP tunneling

Source

pub const MICP: Self

Mobile Internetworking Control Protocol

Source

pub const SCC_SP: Self

Semaphore Communications Sec. Pro

Source

pub const ETHERIP: Self

Ethernet-within-IP Encapsulation

Source

pub const ENCAP: Self

Encapsulation Header

Source

pub const APES: Self

Any private encryption scheme

Source

pub const GMTP: Self

GMTP

Source

pub const IFMP: Self

Ipsilon Flow Management Protocol

Source

pub const PNNI: Self

PNNI over IP

Source

pub const PIM: Self

Protocol Independent Multicast

Source

pub const ARIS: Self

IBM’s ARIS (Aggregate Route IP Switching) Protocol

Source

pub const SCPS: Self

SCPS (Space Communications Protocol Standards)

Source

pub const QNX: Self

QNX

Source

pub const AN: Self

Active Networks

Source

pub const IP_COMP: Self

IP Payload Compression Protocol

Source

pub const SNP: Self

Sitara Networks Protocol

Source

pub const COMPAQ_PEER: Self

Compaq Peer Protocol

Source

pub const IPX_IN_IP: Self

IPX in IP

Source

pub const VRRP: Self

Virtual Router Redundancy Protocol, Common Address Redundancy Protocol (not IANA assigned)

Source

pub const PGM: Self

PGM Reliable Transport Protocol

Source

pub const AHP: Self

Any 0-hop protocol

Source

pub const L2TP: Self

Layer Two Tunneling Protocol Version 3

Source

pub const DDX: Self

D-II Data Exchange (DDX)

Source

pub const IATP: Self

Interactive Agent Transfer Protocol

Source

pub const STP: Self

Schedule Transfer Protocol

Source

pub const SRP: Self

SpectraLink Radio Protocol

Source

pub const UTI: Self

Universal Transport Interface Protocol

Source

pub const SMP: Self

Simple Message Protocol

Source

pub const SM: Self

Simple Multicast Protocol

Source

pub const PTP: Self

Performance Transparency Protocol

Source

pub const IS_IS: Self

IS-IS over IPv4 Intermediate System to Intermediate System (IS-IS) Protocol over IPv4

Source

pub const FIRE: Self

Flexible Intra-AS Routing Environment

Source

pub const CRTP: Self

Combat Radio Transport Protocol

Source

pub const CRUDP: Self

Combat Radio User Datagram

Source

pub const SSCOPMCE: Self

Service-Specific Connection-Oriented Protocol in a Multilink and Connectionless Environment

Source

pub const IPLT: Self

IPLT

Source

pub const SPS: Self

Secure Packet Shield

Source

pub const PIPE: Self

Private IP Encapsulation within IP

Source

pub const SCTP: Self

Stream Control Transmission Protocol

Source

pub const FC: Self

Fibre Channel

Source

pub const RSVP_IGNORE: Self

Reservation Protocol (RSVP) End-to-End Ignore

Source

pub const MOBILITY_6: Self

Mobility Extension Header for IPv6

Source

pub const UDP_LITE: Self

Lightweight User Datagram Protocol

Source

pub const MPLS_IN_IP: Self

Multiprotocol Label Switching Encapsulated in IP

Source

pub const MANET: Self

MANET Protocols

Source

pub const HIP: Self

Host Identity Protocol

Source

pub const SHIM_6: Self

Site Multihoming by IPv6 Intermediation

Source

pub const WESP: Self

Wrapped Encapsulating Security Payload

Source

pub const ROHC: Self

Robust Header Compression

Source

pub const fn new(protocol: u8) -> Self

Return $struct_name from $field_type

Source

pub const fn protocol(&self) -> u8

Return $field_type

Trait Implementations§

Source§

impl Clone for IPProtocol

Source§

fn clone(&self) -> IPProtocol

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for IPProtocol

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for IPProtocol

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<IPProtocol> for u8

Source§

fn from(this: IPProtocol) -> Self

Converts to this type from the input type.
Source§

impl From<u8> for IPProtocol

Source§

fn from(protocol: u8) -> Self

Converts to this type from the input type.
Source§

impl FromStr for IPProtocol

Source§

type Err = ()

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
Source§

impl Hash for IPProtocol

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for IPProtocol

Source§

fn cmp(&self, other: &IPProtocol) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for IPProtocol

Source§

fn eq(&self, other: &IPProtocol) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for IPProtocol

Source§

fn partial_cmp(&self, other: &IPProtocol) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Copy for IPProtocol

Source§

impl Eq for IPProtocol

Source§

impl StructuralPartialEq for IPProtocol

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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 more
Source§

impl<D> OwoColorize for D

Source§

fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>
where C: Color,

Set the foreground color generically Read more
Source§

fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>
where C: Color,

Set the background color generically. Read more
Source§

fn black<'a>(&'a self) -> FgColorDisplay<'a, Black, Self>

Change the foreground color to black
Source§

fn on_black<'a>(&'a self) -> BgColorDisplay<'a, Black, Self>

Change the background color to black
Source§

fn red<'a>(&'a self) -> FgColorDisplay<'a, Red, Self>

Change the foreground color to red
Source§

fn on_red<'a>(&'a self) -> BgColorDisplay<'a, Red, Self>

Change the background color to red
Source§

fn green<'a>(&'a self) -> FgColorDisplay<'a, Green, Self>

Change the foreground color to green
Source§

fn on_green<'a>(&'a self) -> BgColorDisplay<'a, Green, Self>

Change the background color to green
Source§

fn yellow<'a>(&'a self) -> FgColorDisplay<'a, Yellow, Self>

Change the foreground color to yellow
Source§

fn on_yellow<'a>(&'a self) -> BgColorDisplay<'a, Yellow, Self>

Change the background color to yellow
Source§

fn blue<'a>(&'a self) -> FgColorDisplay<'a, Blue, Self>

Change the foreground color to blue
Source§

fn on_blue<'a>(&'a self) -> BgColorDisplay<'a, Blue, Self>

Change the background color to blue
Source§

fn magenta<'a>(&'a self) -> FgColorDisplay<'a, Magenta, Self>

Change the foreground color to magenta
Source§

fn on_magenta<'a>(&'a self) -> BgColorDisplay<'a, Magenta, Self>

Change the background color to magenta
Source§

fn purple<'a>(&'a self) -> FgColorDisplay<'a, Magenta, Self>

Change the foreground color to purple
Source§

fn on_purple<'a>(&'a self) -> BgColorDisplay<'a, Magenta, Self>

Change the background color to purple
Source§

fn cyan<'a>(&'a self) -> FgColorDisplay<'a, Cyan, Self>

Change the foreground color to cyan
Source§

fn on_cyan<'a>(&'a self) -> BgColorDisplay<'a, Cyan, Self>

Change the background color to cyan
Source§

fn white<'a>(&'a self) -> FgColorDisplay<'a, White, Self>

Change the foreground color to white
Source§

fn on_white<'a>(&'a self) -> BgColorDisplay<'a, White, Self>

Change the background color to white
Source§

fn default_color<'a>(&'a self) -> FgColorDisplay<'a, Default, Self>

Change the foreground color to the terminal default
Source§

fn on_default_color<'a>(&'a self) -> BgColorDisplay<'a, Default, Self>

Change the background color to the terminal default
Source§

fn bright_black<'a>(&'a self) -> FgColorDisplay<'a, BrightBlack, Self>

Change the foreground color to bright black
Source§

fn on_bright_black<'a>(&'a self) -> BgColorDisplay<'a, BrightBlack, Self>

Change the background color to bright black
Source§

fn bright_red<'a>(&'a self) -> FgColorDisplay<'a, BrightRed, Self>

Change the foreground color to bright red
Source§

fn on_bright_red<'a>(&'a self) -> BgColorDisplay<'a, BrightRed, Self>

Change the background color to bright red
Source§

fn bright_green<'a>(&'a self) -> FgColorDisplay<'a, BrightGreen, Self>

Change the foreground color to bright green
Source§

fn on_bright_green<'a>(&'a self) -> BgColorDisplay<'a, BrightGreen, Self>

Change the background color to bright green
Source§

fn bright_yellow<'a>(&'a self) -> FgColorDisplay<'a, BrightYellow, Self>

Change the foreground color to bright yellow
Source§

fn on_bright_yellow<'a>(&'a self) -> BgColorDisplay<'a, BrightYellow, Self>

Change the background color to bright yellow
Source§

fn bright_blue<'a>(&'a self) -> FgColorDisplay<'a, BrightBlue, Self>

Change the foreground color to bright blue
Source§

fn on_bright_blue<'a>(&'a self) -> BgColorDisplay<'a, BrightBlue, Self>

Change the background color to bright blue
Source§

fn bright_magenta<'a>(&'a self) -> FgColorDisplay<'a, BrightMagenta, Self>

Change the foreground color to bright magenta
Source§

fn on_bright_magenta<'a>(&'a self) -> BgColorDisplay<'a, BrightMagenta, Self>

Change the background color to bright magenta
Source§

fn bright_purple<'a>(&'a self) -> FgColorDisplay<'a, BrightMagenta, Self>

Change the foreground color to bright purple
Source§

fn on_bright_purple<'a>(&'a self) -> BgColorDisplay<'a, BrightMagenta, Self>

Change the background color to bright purple
Source§

fn bright_cyan<'a>(&'a self) -> FgColorDisplay<'a, BrightCyan, Self>

Change the foreground color to bright cyan
Source§

fn on_bright_cyan<'a>(&'a self) -> BgColorDisplay<'a, BrightCyan, Self>

Change the background color to bright cyan
Source§

fn bright_white<'a>(&'a self) -> FgColorDisplay<'a, BrightWhite, Self>

Change the foreground color to bright white
Source§

fn on_bright_white<'a>(&'a self) -> BgColorDisplay<'a, BrightWhite, Self>

Change the background color to bright white
Source§

fn bold<'a>(&'a self) -> BoldDisplay<'a, Self>

Make the text bold
Source§

fn dimmed<'a>(&'a self) -> DimDisplay<'a, Self>

Make the text dim
Source§

fn italic<'a>(&'a self) -> ItalicDisplay<'a, Self>

Make the text italicized
Source§

fn underline<'a>(&'a self) -> UnderlineDisplay<'a, Self>

Make the text italicized
Make the text blink
Make the text blink (but fast!)
Source§

fn reversed<'a>(&'a self) -> ReversedDisplay<'a, Self>

Swap the foreground and background colors
Source§

fn hidden<'a>(&'a self) -> HiddenDisplay<'a, Self>

Hide the text
Source§

fn strikethrough<'a>(&'a self) -> StrikeThroughDisplay<'a, Self>

Cross out the text
Source§

fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>
where Color: DynColor,

Set the foreground color at runtime. Only use if you do not know which color will be used at compile-time. If the color is constant, use either OwoColorize::fg or a color-specific method, such as OwoColorize::green, Read more
Source§

fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>
where Color: DynColor,

Set the background color at runtime. Only use if you do not know what color to use at compile-time. If the color is constant, use either OwoColorize::bg or a color-specific method, such as OwoColorize::on_yellow, Read more
Source§

fn fg_rgb<const R: u8, const G: u8, const B: u8>( &self, ) -> FgColorDisplay<'_, CustomColor<R, G, B>, Self>

Set the foreground color to a specific RGB value.
Source§

fn bg_rgb<const R: u8, const G: u8, const B: u8>( &self, ) -> BgColorDisplay<'_, CustomColor<R, G, B>, Self>

Set the background color to a specific RGB value.
Source§

fn truecolor(&self, r: u8, g: u8, b: u8) -> FgDynColorDisplay<'_, Rgb, Self>

Sets the foreground color to an RGB value.
Source§

fn on_truecolor(&self, r: u8, g: u8, b: u8) -> BgDynColorDisplay<'_, Rgb, Self>

Sets the background color to an RGB value.
Source§

fn style(&self, style: Style) -> Styled<&Self>

Apply a runtime-determined style
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more