Struct trust_dns_client::rr::dnssec::SupportedAlgorithms [−][src]
Used to specify the set of SupportedAlgorithms between a client and server
Implementations
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 BinEncodable for SupportedAlgorithms
[src]
pub fn emit(&self, encoder: &mut BinEncoder<'_>) -> Result<(), ProtoError>
[src]
pub fn to_bytes(&self) -> Result<Vec<u8, Global>, ProtoError>
[src]
impl Clone for SupportedAlgorithms
[src]
pub fn clone(&self) -> SupportedAlgorithms
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for SupportedAlgorithms
[src]
impl Debug for SupportedAlgorithms
[src]
impl Default for SupportedAlgorithms
[src]
pub fn default() -> SupportedAlgorithms
[src]
impl Display for SupportedAlgorithms
[src]
impl Eq for SupportedAlgorithms
[src]
impl<'a> From<&'a [u8]> for SupportedAlgorithms
[src]
impl From<Algorithm> for SupportedAlgorithms
[src]
pub fn from(algorithm: Algorithm) -> SupportedAlgorithms
[src]
impl Hash for SupportedAlgorithms
[src]
pub fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<SupportedAlgorithms> for SupportedAlgorithms
[src]
pub fn eq(&self, other: &SupportedAlgorithms) -> bool
[src]
pub fn ne(&self, other: &SupportedAlgorithms) -> bool
[src]
impl PartialOrd<SupportedAlgorithms> for SupportedAlgorithms
[src]
pub fn partial_cmp(&self, other: &SupportedAlgorithms) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for SupportedAlgorithms
[src]
impl StructuralPartialEq for SupportedAlgorithms
[src]
Auto Trait Implementations
impl RefUnwindSafe for SupportedAlgorithms
impl Send for SupportedAlgorithms
impl Sync for SupportedAlgorithms
impl Unpin for SupportedAlgorithms
impl UnwindSafe for SupportedAlgorithms
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<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> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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>,