[][src]Struct trust_dns::rr::dnssec::SupportedAlgorithms

pub struct SupportedAlgorithms { /* fields omitted */ }

Used to specify the set of SupportedAlgorithms between a client and server

Methods

impl SupportedAlgorithms[src]

pub fn new() -> SupportedAlgorithms[src]

Return a new set of Supported algorithms

pub fn all() -> SupportedAlgorithms[src]

Specify the entire set is supported

pub fn from_vec(algorithms: &[Algorithm]) -> SupportedAlgorithms[src]

Based on the set of Algorithms, return the supported set

pub fn set(&mut self, algorithm: Algorithm)[src]

Set the specified algorithm as supported

pub fn has(self, algorithm: Algorithm) -> bool[src]

Returns true if the algorithm is supported

pub fn iter(&self) -> SupportedAlgorithmsIter[src]

Return an Iterator over the supported set.

pub fn len(self) -> u16[src]

Return the count of supported algorithms

pub fn is_empty(self) -> bool[src]

Return true if no SupportedAlgorithms are set, this implies the option is not supported

Trait Implementations

impl<'a> From<&'a [u8]> for SupportedAlgorithms[src]

impl From<Algorithm> for SupportedAlgorithms[src]

impl Copy for SupportedAlgorithms[src]

impl Default for SupportedAlgorithms[src]

impl Clone for SupportedAlgorithms[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Eq for SupportedAlgorithms[src]

impl PartialEq<SupportedAlgorithms> for SupportedAlgorithms[src]

impl Display for SupportedAlgorithms[src]

impl BinEncodable for SupportedAlgorithms[src]

fn to_bytes(&self) -> Result<Vec<u8>, ProtoError>[src]

Returns the object in binary form

impl PartialOrd<SupportedAlgorithms> for SupportedAlgorithms[src]

impl Debug for SupportedAlgorithms[src]

impl Hash for SupportedAlgorithms[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

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

impl<T> Erased for T