pub enum OptValue {
None,
StrList(Vec<String>),
U8List(Vec<u8>),
U16(u16),
U16List(Vec<u16>),
U32(u32),
U32List(Vec<u32>),
InAddr4List(Vec<Ipv4Addr>),
InAddr6List(Vec<Ipv6Addr>),
Bin(Vec<u8>),
Name(String),
}Expand description
A parsed DNS option value.
Variants§
None
No value.
StrList(Vec<String>)
List of strings.
U8List(Vec<u8>)
List of u8 values.
U16(u16)
A single u16.
U16List(Vec<u16>)
List of u16 values.
U32(u32)
A single u32.
U32List(Vec<u32>)
List of u32 values.
InAddr4List(Vec<Ipv4Addr>)
List of IPv4 addresses.
InAddr6List(Vec<Ipv6Addr>)
List of IPv6 addresses.
Bin(Vec<u8>)
Opaque binary data.
Name(String)
A DNS domain name.
Trait Implementations§
impl Eq for OptValue
impl StructuralPartialEq for OptValue
Auto Trait Implementations§
impl Freeze for OptValue
impl RefUnwindSafe for OptValue
impl Send for OptValue
impl Sync for OptValue
impl Unpin for OptValue
impl UnsafeUnpin for OptValue
impl UnwindSafe for OptValue
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more