Struct domain::base::opt::UnknownOptData[][src]

pub struct UnknownOptData<Octets> { /* fields omitted */ }

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]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
where
    Octets: AsRef<[u8]>, 
[src]

Returns a slice of the option data.

pub fn as_slice_mut(&mut self) -> &mut [u8]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
where
    Octets: AsMut<[u8]>, 
[src]

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]

impl<Octets: AsRef<[u8]>> Compose for UnknownOptData<Octets>[src]

impl<Octets: Debug> Debug for UnknownOptData<Octets>[src]

impl<Octets> Deref for UnknownOptData<Octets>[src]

type Target = Octets

The resulting type after dereferencing.

impl<Octets> DerefMut for UnknownOptData<Octets>[src]

impl<Octets: AsRef<[u8]>> OptData for UnknownOptData<Octets>[src]

impl<Octets, Ref> ParseOptData<Ref> for UnknownOptData<Octets> where
    Octets: AsRef<[u8]>,
    Ref: OctetsRef<Range = Octets>, 
[src]

Auto Trait Implementations

impl<Octets> RefUnwindSafe for UnknownOptData<Octets> where
    Octets: RefUnwindSafe

impl<Octets> Send for UnknownOptData<Octets> where
    Octets: Send

impl<Octets> Sync for UnknownOptData<Octets> where
    Octets: Sync

impl<Octets> Unpin for UnknownOptData<Octets> where
    Octets: Unpin

impl<Octets> UnwindSafe for UnknownOptData<Octets> where
    Octets: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<K> KeyStore for K where
    K: AsRef<Key> + Clone
[src]

type Key = K

The representation of the key returned by the store.

impl<Source, Target> OctetsInto<Target> for Source where
    Target: OctetsFrom<Source>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,