Enum embedded_nal::AddrType
source · pub enum AddrType {
IPv4,
IPv6,
Either,
}
Expand description
This is the host address type to be returned by gethostbyname
.
An IPv4 address type always looks for A
records, while IPv6 address type
will look for AAAA
records
Variants§
IPv4
Result is A
record
IPv6
Result is AAAA
record
Either
Result is either a A
record, or a AAAA
record
Trait Implementations§
source§impl PartialEq for AddrType
impl PartialEq for AddrType
impl StructuralPartialEq for AddrType
Auto Trait Implementations§
impl RefUnwindSafe for AddrType
impl Send for AddrType
impl Sync for AddrType
impl Unpin for AddrType
impl UnwindSafe for AddrType
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