fuchsia_bluetooth::profile

Function combine_security_requirements

Source
pub fn combine_security_requirements(
    reqs: &SecurityRequirements,
    other: &SecurityRequirements,
) -> SecurityRequirements
Expand description

Given two SecurityRequirements, combines both into requirements as strict as either. A stricter SecurityRequirements is defined as:

  1. Authentication required is stricter than not.
  2. Secure Connections required is stricter than not.