Struct domain::base::opt::UnknownOptData [−][src]
An OPT option in its raw form.
This type accepts any option type via its option code and raw data.
Implementations
impl<Octets> UnknownOptData<Octets>
[src]
pub fn from_octets(code: OptionCode, data: Octets) -> Self
[src]
Creates a new option from the code and data.
pub fn code(&self) -> OptionCode
[src]
Returns the option code of the option.
pub fn data(&self) -> &Octets
[src]
Returns a reference for to the option data.
pub fn data_mut(&mut self) -> &mut Octets
[src]
Returns a mutable reference to the option data.
pub fn as_slice(&self) -> &[u8]ⓘ where
Octets: AsRef<[u8]>,
[src]
Octets: AsRef<[u8]>,
Returns a slice of the option data.
pub fn as_slice_mut(&mut self) -> &mut [u8]ⓘ where
Octets: AsMut<[u8]>,
[src]
Octets: AsMut<[u8]>,
Returns a mutable slice of the option data.
Trait Implementations
impl<Octets: AsMut<[u8]>> AsMut<[u8]> for UnknownOptData<Octets>
[src]
impl<Octets> AsMut<Octets> for UnknownOptData<Octets>
[src]
impl<Octets: AsRef<[u8]>> AsRef<[u8]> for UnknownOptData<Octets>
[src]
impl<Octets> AsRef<Octets> for UnknownOptData<Octets>
[src]
impl<Octets: Clone> Clone for UnknownOptData<Octets>
[src]
fn clone(&self) -> UnknownOptData<Octets>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<Octets: AsRef<[u8]>> Compose for UnknownOptData<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 UnknownOptData<Octets>
[src]
impl<Octets> Deref for UnknownOptData<Octets>
[src]
impl<Octets> DerefMut for UnknownOptData<Octets>
[src]
impl<Octets: AsRef<[u8]>> OptData for UnknownOptData<Octets>
[src]
fn code(&self) -> OptionCode
[src]
impl<Octets, Ref> ParseOptData<Ref> for UnknownOptData<Octets> where
Octets: AsRef<[u8]>,
Ref: OctetsRef<Range = Octets>,
[src]
Octets: AsRef<[u8]>,
Ref: OctetsRef<Range = Octets>,
fn parse_option(
code: OptionCode,
parser: &mut Parser<Ref>
) -> Result<Option<Self>, ParseError>
[src]
code: OptionCode,
parser: &mut Parser<Ref>
) -> Result<Option<Self>, ParseError>
Auto Trait Implementations
impl<Octets> RefUnwindSafe for UnknownOptData<Octets> where
Octets: RefUnwindSafe,
Octets: RefUnwindSafe,
impl<Octets> Send for UnknownOptData<Octets> where
Octets: Send,
Octets: Send,
impl<Octets> Sync for UnknownOptData<Octets> where
Octets: Sync,
Octets: Sync,
impl<Octets> Unpin for UnknownOptData<Octets> where
Octets: Unpin,
Octets: Unpin,
impl<Octets> UnwindSafe for UnknownOptData<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,
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<K> KeyStore for K where
K: AsRef<Key> + Clone,
[src]
K: AsRef<Key> + Clone,
type Key = K
The representation of the key returned by the store.
pub fn get_key<N>(&Self, &N, Algorithm) -> Option<<K as KeyStore>::Key> where
N: ToDname,
[src]
N: ToDname,
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, 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>,