pub struct AlgorithmRequirements {
pub supported: u32,
pub required: u32,
}Expand description
Spec §7.3.10 — AlgorithmRequirements { supported_mask, required_mask }.
Both u32 BE on the wire (8 bytes total).
Fields§
§supported: u32Mask of all algorithms supported by this participant.
required: u32Mask of the algorithms the participant requires. A
compatibility check (Spec §7.3.10) requires
(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): check whether remote.supported
contains all bits of self.required.
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 moreimpl Copy for AlgorithmRequirements
Source§impl Debug for AlgorithmRequirements
impl Debug for AlgorithmRequirements
impl Eq for AlgorithmRequirements
Source§impl PartialEq for AlgorithmRequirements
impl PartialEq 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