pub struct AlgorithmRequirements {
pub supported: u32,
pub required: u32,
}Expand description
Spec §7.3.10 — AlgorithmRequirements { supported_mask, required_mask }.
Beide u32 BE auf der Wire (8 byte total).
Fields§
§supported: u32Maske aller von diesem Participant unterstuetzten Algorithmen.
required: u32Maske der Algorithmen, die der Participant erfordert. Eine
Compatibility-Pruefung (Spec §7.3.10) verlangt
(remote.supported & local.required) == local.required.
Implementations§
Source§impl AlgorithmRequirements
impl AlgorithmRequirements
Sourcepub fn is_compatible_with(&self, remote_supported: u32) -> bool
pub fn is_compatible_with(&self, remote_supported: u32) -> bool
Compatibility-Check (Spec §7.3.10): pruefe ob remote.supported
alle Bits von self.required enthaelt.
Trait Implementations§
Source§impl Clone for AlgorithmRequirements
impl Clone for AlgorithmRequirements
Source§fn clone(&self) -> AlgorithmRequirements
fn clone(&self) -> AlgorithmRequirements
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AlgorithmRequirements
impl Debug for AlgorithmRequirements
Source§impl PartialEq for AlgorithmRequirements
impl PartialEq for AlgorithmRequirements
Source§fn eq(&self, other: &AlgorithmRequirements) -> bool
fn eq(&self, other: &AlgorithmRequirements) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for AlgorithmRequirements
impl Eq for AlgorithmRequirements
impl StructuralPartialEq for AlgorithmRequirements
Auto Trait Implementations§
impl Freeze for AlgorithmRequirements
impl RefUnwindSafe for AlgorithmRequirements
impl Send for AlgorithmRequirements
impl Sync for AlgorithmRequirements
impl Unpin for AlgorithmRequirements
impl UnsafeUnpin for AlgorithmRequirements
impl UnwindSafe for AlgorithmRequirements
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more