Enum domain::base::iana::rcode::TsigRcode [−][src]
Response codes for transaction authentication (TSIG).
TSIG and TKEY resource records contain a 16 bit wide error field whose
values are an extension of the standard DNS Rcode
. While it was
intended to also share the same space with the extended response codes
used by EDNS (see OptRcode
), both used the value 16. To allow
distinguish between the two uses of this value, we have two separate
types.
The values for all three response code types are defined in the IANA DNS RCODEs registry. This type is complete as of 2019-01-28.
Variants
Server failure.
The name server was unable to process this query due to a problem with the name server.
Defined in RFC 1035.
Name error.
The domain name given in the query does not exist at the name server.
Defined in RFC 1035.
Query refused.
The name server refused to perform the operation requested by the query for policy reasons.
Defined in RFC 1035.
Name exists when it should not.
Returned for an UPDATE query when a domain requested to not exist does in fact exist.
Returned when resolving a DNAME redirection when the resulting name exceeds the length of 255 octets.
Defined in RFC 2136 for the UPDATE query and RFC 6672 for DNAME redirection.
RR set exists when it should not.
Returned for an UPDATE query when an RRset requested to not exist does in fact exist.
Defined in RFC 2136.
RR set that should exist does not.
Returned for an UPDATE query when an RRset requested to exist does not.
Defined in RFC 2136.
Server not authoritative for zone or client not authorized.
Returned for an UPDATE query when the server is not an authoritative name server for the requested domain.
Returned for queries using TSIG when authorisation failed.
Name not contained in zone.
A name used in the prerequisite or update section is not within the zone given in the zone section.
Defined in RFC 2136.
Key not recognized.
The server did not recognize the key used for generating the signature.
Defined in RFC 2845.
Signature out of time window.
The server time was outside the time interval specified by the request.
Defined in RFC 2845.
Bad TKEY mode.
The mode field in a TKEY resource record contained a mode not supported by the server.
Defined in RFC 2930.
Duplicate key name.
In TKEY records, when establishing a new key, the name used already exists at the server or when deleting a key, a key of this name does not exist.
Defined in RFC 2930.
Algorithm not supported.
The value is defined in RFC 2930 but never actually explained. Presumably, it will be returned when the algorithm field of a TKEY record contains a value not supported by the server.
Bad truncation.
A TSIG record was received with a MAC too short for the local policy in force.
Defined in RFC 4635.
Bad or missing server cookie.
The request contained a COOKIE option either without a server cookie or with a server cookie that did not validate.
Defined in RFC 7873.
Int(u16)
A raw value given through its integer.
Implementations
impl TsigRcode
[src]
pub fn from_int(value: u16) -> Self
[src]
Returns a value from its raw integer value.
pub fn to_int(self) -> u16
[src]
Returns the raw integer value for a value.
pub fn from_mnemonic(m: &[u8]) -> Option<Self>
[src]
Returns a value from a well-defined mnemonic.
pub fn to_mnemonic(self) -> Option<&'static [u8]>
[src]
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.
impl TsigRcode
[src]
Trait Implementations
impl Clone for TsigRcode
[src]
impl Compose for TsigRcode
[src]
fn compose<T: OctetsBuilder>(&self, target: &mut T) -> Result<(), ShortBuf>
[src]
fn compose_canonical<T: OctetsBuilder>(
&self,
target: &mut T
) -> Result<(), ShortBuf>
[src]
&self,
target: &mut T
) -> Result<(), ShortBuf>
impl Copy for TsigRcode
[src]
impl Debug for TsigRcode
[src]
impl Display for TsigRcode
[src]
impl Eq for TsigRcode
[src]
impl From<OptRcode> for TsigRcode
[src]
impl From<Rcode> for TsigRcode
[src]
impl From<u16> for TsigRcode
[src]
impl FromStr for TsigRcode
[src]
type Err = FromStrError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl Hash for TsigRcode
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for TsigRcode
[src]
fn cmp(&self, other: &Self) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl<Ref: AsRef<[u8]>> Parse<Ref> for TsigRcode
[src]
fn parse(parser: &mut Parser<Ref>) -> Result<Self, ParseError>
[src]
fn skip(parser: &mut Parser<Ref>) -> Result<(), ParseError>
[src]
impl PartialEq<TsigRcode> for TsigRcode
[src]
impl PartialEq<u16> for TsigRcode
[src]
impl PartialOrd<TsigRcode> for TsigRcode
[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<u16> for TsigRcode
[src]
fn partial_cmp(&self, other: &u16) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl Scan for TsigRcode
[src]
Auto Trait Implementations
impl RefUnwindSafe for TsigRcode
impl Send for TsigRcode
impl Sync for TsigRcode
impl Unpin for TsigRcode
impl UnwindSafe for TsigRcode
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<Source, Target> OctetsInto<Target> for Source where
Target: OctetsFrom<Source>,
[src]
Target: OctetsFrom<Source>,
pub fn octets_into(Self) -> Result<Target, ShortBuf>
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,