[−][src]Struct trust_dns::rr::dnssec::SupportedAlgorithms
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]
fn from(algorithm: Algorithm) -> SupportedAlgorithms
[src]
impl Copy for SupportedAlgorithms
[src]
impl Default for SupportedAlgorithms
[src]
fn default() -> SupportedAlgorithms
[src]
impl Clone for SupportedAlgorithms
[src]
fn clone(&self) -> 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]
fn eq(&self, other: &SupportedAlgorithms) -> bool
[src]
fn ne(&self, other: &SupportedAlgorithms) -> bool
[src]
impl Display for SupportedAlgorithms
[src]
impl BinEncodable for SupportedAlgorithms
[src]
fn emit(&self, encoder: &mut BinEncoder) -> Result<(), ProtoError>
[src]
fn to_bytes(&self) -> Result<Vec<u8>, ProtoError>
[src]
Returns the object in binary form
impl PartialOrd<SupportedAlgorithms> for SupportedAlgorithms
[src]
fn partial_cmp(&self, other: &SupportedAlgorithms) -> Option<Ordering>
[src]
fn lt(&self, other: &SupportedAlgorithms) -> bool
[src]
fn le(&self, other: &SupportedAlgorithms) -> bool
[src]
fn gt(&self, other: &SupportedAlgorithms) -> bool
[src]
fn ge(&self, other: &SupportedAlgorithms) -> bool
[src]
impl Debug for SupportedAlgorithms
[src]
impl Hash for SupportedAlgorithms
[src]
Auto Trait Implementations
impl Sync for SupportedAlgorithms
impl Send for SupportedAlgorithms
impl Unpin for SupportedAlgorithms
impl RefUnwindSafe for SupportedAlgorithms
impl UnwindSafe for SupportedAlgorithms
Blanket Implementations
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
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<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,