Enum etherparse::icmpv4::RedirectCode
source · pub enum RedirectCode {
RedirectForNetwork = 0,
RedirectForHost = 1,
RedirectForTypeOfServiceAndNetwork = 2,
RedirectForTypeOfServiceAndHost = 3,
}
Expand description
Code value in an ICMPv4 Redirect message.
Variants§
RedirectForNetwork = 0
Redirect Datagram for the Network (or subnet)
RedirectForHost = 1
Redirect Datagram for the Host
RedirectForTypeOfServiceAndNetwork = 2
Redirect Datagram for the Type of Service and Network
RedirectForTypeOfServiceAndHost = 3
Redirect datagrams for the Type of Service and Host
Implementations§
source§impl RedirectCode
impl RedirectCode
Trait Implementations§
source§impl Clone for RedirectCode
impl Clone for RedirectCode
source§fn clone(&self) -> RedirectCode
fn clone(&self) -> RedirectCode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RedirectCode
impl Debug for RedirectCode
source§impl PartialEq for RedirectCode
impl PartialEq for RedirectCode
source§fn eq(&self, other: &RedirectCode) -> bool
fn eq(&self, other: &RedirectCode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for RedirectCode
impl Eq for RedirectCode
impl StructuralPartialEq for RedirectCode
Auto Trait Implementations§
impl Freeze for RedirectCode
impl RefUnwindSafe for RedirectCode
impl Send for RedirectCode
impl Sync for RedirectCode
impl Unpin for RedirectCode
impl UnwindSafe for RedirectCode
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