pub struct Rtype(/* private fields */);
Expand description
Resource Record Types.
Each resource records has a 16 bit type value indicating what kind of information is represented by the record. Normal query includes the type of record information is requested for. A few aditional types, called query types, are defined as well and can only be used in questions. This type represents both these types.
The currently assigned values are maintained in an IANA registry. This type is complete as of 2019-01-28.
In order to avoid confusion over capitalization, the mnemonics are treated as single acronyms and therefore all variant names are spelled with an initial capital letter in accordance with the Rust naming guidelines.
Implementations§
source§impl Rtype
impl Rtype
sourcepub const NSAPPTR: Rtype = _
pub const NSAPPTR: Rtype = _
For domain name pointer, NSAP style.
See RFC 1348, RFC 1637, RFC 1706.
sourcepub const NSEC3PARAM: Rtype = _
pub const NSEC3PARAM: Rtype = _
NSEC3PARAM.
See RFC 5155.
sourcepub const OPENPGPKEY: Rtype = _
pub const OPENPGPKEY: Rtype = _
OpenPGP key.
See draft-ietf-dane-openpgpkey.
sourcepub const SVCB: Rtype = _
pub const SVCB: Rtype = _
General Purpose Service Endpoints.
See draft-ietf-dnsop-svcb-httpssvc
sourcepub const HTTPS: Rtype = _
pub const HTTPS: Rtype = _
HTTPS Specific Service Endpoints.
See draft-ietf-dnsop-svcb-httpssvc
source§impl Rtype
impl Rtype
sourcepub fn from_mnemonic(m: &[u8]) -> Option<Self>
pub fn from_mnemonic(m: &[u8]) -> Option<Self>
Returns a value from a well-defined mnemonic.
sourcepub const fn to_mnemonic(self) -> Option<&'static [u8]>
pub const fn to_mnemonic(self) -> Option<&'static [u8]>
Returns the mnemonic for this value if there is one.
This will also return a mnemonic if a well-defined variant
is hidden in a Int
variant.
pub fn parse<'a, Octs: AsRef<[u8]> + ?Sized>( parser: &mut Parser<'a, Octs>, ) -> Result<Self, ParseError>
pub const COMPOSE_LEN: u16 = 2u16
pub fn compose<Target: OctetsBuilder + ?Sized>( &self, target: &mut Target, ) -> Result<(), Target::AppendError>
Trait Implementations§
source§impl Ord for Rtype
impl Ord for Rtype
source§impl PartialOrd for Rtype
impl PartialOrd for Rtype
impl Copy for Rtype
impl Eq for Rtype
impl StructuralPartialEq for Rtype
Auto Trait Implementations§
impl Freeze for Rtype
impl RefUnwindSafe for Rtype
impl Send for Rtype
impl Sync for Rtype
impl Unpin for Rtype
impl UnwindSafe for Rtype
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)