[−][src]Struct domain::base::opt::rfc8145::KeyTag
Implementations
impl<Octets> KeyTag<Octets>
[src]
pub fn new(octets: Octets) -> Self
[src]
pub fn push<Target: OctetsBuilder>(
builder: &mut OptBuilder<Target>,
tags: &[u16]
) -> Result<(), ShortBuf>
[src]
builder: &mut OptBuilder<Target>,
tags: &[u16]
) -> Result<(), ShortBuf>
pub fn iter(&self) -> KeyTagIter where
Octets: AsRef<[u8]>,
[src]
Octets: AsRef<[u8]>,
Trait Implementations
impl<Octets: Clone> Clone for KeyTag<Octets>
[src]
impl<Octets> CodeOptData for KeyTag<Octets>
[src]
const CODE: OptionCode
[src]
impl<Octets: AsRef<[u8]>> Compose for KeyTag<Octets>
[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<Octets: Debug> Debug for KeyTag<Octets>
[src]
impl<Octets: Eq> Eq for KeyTag<Octets>
[src]
impl<Octets> From<KeyTag<Octets>> for AllOptData<Octets>
[src]
impl<Octets: Hash> Hash for KeyTag<Octets>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<'a, Octets: AsRef<[u8]>> IntoIterator for &'a KeyTag<Octets>
[src]
type Item = u16
The type of the elements being iterated over.
type IntoIter = KeyTagIter<'a>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
impl<Ref: OctetsRef> Parse<Ref> for KeyTag<Ref::Range>
[src]
fn parse(parser: &mut Parser<Ref>) -> Result<Self, ParseError>
[src]
fn skip(parser: &mut Parser<Ref>) -> Result<(), ParseError>
[src]
impl<Octets: PartialEq> PartialEq<KeyTag<Octets>> for KeyTag<Octets>
[src]
impl<Octets> StructuralEq for KeyTag<Octets>
[src]
impl<Octets> StructuralPartialEq for KeyTag<Octets>
[src]
Auto Trait Implementations
impl<Octets> RefUnwindSafe for KeyTag<Octets> where
Octets: RefUnwindSafe,
Octets: RefUnwindSafe,
impl<Octets> Send for KeyTag<Octets> where
Octets: Send,
Octets: Send,
impl<Octets> Sync for KeyTag<Octets> where
Octets: Sync,
Octets: Sync,
impl<Octets> Unpin for KeyTag<Octets> where
Octets: Unpin,
Octets: Unpin,
impl<Octets> UnwindSafe for KeyTag<Octets> where
Octets: UnwindSafe,
Octets: UnwindSafe,
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,
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<T> OptData for T where
T: Compose + CodeOptData,
[src]
T: Compose + CodeOptData,
fn code(&Self) -> OptionCode
[src]
impl<Octets, T> ParseOptData<Octets> for T where
T: CodeOptData + Parse<Octets> + Compose,
[src]
T: CodeOptData + Parse<Octets> + Compose,
fn parse_option(
OptionCode,
&mut Parser<Octets>
) -> Result<Option<T>, ParseError>
[src]
OptionCode,
&mut Parser<Octets>
) -> Result<Option<T>, ParseError>
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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.
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.
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>,