pub enum RawValidationMode {
StrictMulticastDestination,
AllowAnyDestination,
}Expand description
Validation behavior applied to outbound raw IP datagrams.
Variants§
StrictMulticastDestination
Require the parsed destination IP address to be multicast.
AllowAnyDestination
Allow non-multicast destinations through validation.
Individual platform backends can still return an explicit unsupported error when they cannot route a non-multicast raw datagram faithfully.
Trait Implementations§
Source§impl Clone for RawValidationMode
impl Clone for RawValidationMode
Source§fn clone(&self) -> RawValidationMode
fn clone(&self) -> RawValidationMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RawValidationMode
Source§impl Debug for RawValidationMode
impl Debug for RawValidationMode
Source§impl Default for RawValidationMode
impl Default for RawValidationMode
Source§fn default() -> RawValidationMode
fn default() -> RawValidationMode
Returns the “default value” for a type. Read more
impl Eq for RawValidationMode
Source§impl Hash for RawValidationMode
impl Hash for RawValidationMode
Source§impl PartialEq for RawValidationMode
impl PartialEq for RawValidationMode
impl StructuralPartialEq for RawValidationMode
Auto Trait Implementations§
impl Freeze for RawValidationMode
impl RefUnwindSafe for RawValidationMode
impl Send for RawValidationMode
impl Sync for RawValidationMode
impl Unpin for RawValidationMode
impl UnsafeUnpin for RawValidationMode
impl UnwindSafe for RawValidationMode
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