Struct trust_dns_proto::rr::RrKey
source · pub struct RrKey {
pub name: LowerName,
pub record_type: RecordType,
}
Expand description
Accessor key for RRSets in the Authority.
Fields§
§name: LowerName
Matches the name in the Record of this key
record_type: RecordType
Matches the type of the Record of this key
Implementations§
source§impl RrKey
impl RrKey
sourcepub fn new(name: LowerName, record_type: RecordType) -> Self
pub fn new(name: LowerName, record_type: RecordType) -> Self
Creates a new key to access the Authority.
Arguments
name
- domain name to lookup.record_type
- theRecordType
to lookup.
Return value
A new key to access the Authorities. TODO: make all cloned params pass by value.
Trait Implementations§
source§impl Ord for RrKey
impl Ord for RrKey
source§impl PartialEq for RrKey
impl PartialEq for RrKey
source§impl PartialOrd for RrKey
impl PartialOrd for RrKey
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for RrKey
impl StructuralEq for RrKey
impl StructuralPartialEq for RrKey
Auto Trait Implementations§
impl RefUnwindSafe for RrKey
impl Send for RrKey
impl Sync for RrKey
impl Unpin for RrKey
impl UnwindSafe for RrKey
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.