pub struct Compatibility { /* private fields */ }
Expand description
Compatibility of a BSS with respect to a scanning interface.
Describes the mutually supported modes of operation between a compatible BSS and a local scanning interface. Here, compatibility refers to the ability to establish a connection.
Implementations§
Source§impl Compatibility
impl Compatibility
Sourcepub fn try_new(
mutual_security_protocols: impl IntoIterator<Item = SecurityDescriptor>,
) -> Option<Self>
pub fn try_new( mutual_security_protocols: impl IntoIterator<Item = SecurityDescriptor>, ) -> Option<Self>
Constructs a Compatibility
from a set of mutually supported security protocols.
Returns None
if the set of mutually supported security protocols is empty, because this
implies incompatibility.
Sourcepub fn expect_some(
mutual_security_protocols: impl IntoIterator<Item = SecurityDescriptor>,
) -> Option<Self>
pub fn expect_some( mutual_security_protocols: impl IntoIterator<Item = SecurityDescriptor>, ) -> Option<Self>
Constructs a Compatibility
from a set of mutually supported security protocols.
While this function presents a fallible interface and returns an Option
, it panics on
failure and never returns None
. This can be used when Compatibility
is optional but it
is important to assert success, such as in tests.
§Panics
Panics if a Compatibility
cannot be constructed from the given set of mutually supported
security protocols. This occurs if Compatibility::try_new
returns None
.
Sourcepub fn mutual_security_protocols(&self) -> &HashSet<SecurityDescriptor>
pub fn mutual_security_protocols(&self) -> &HashSet<SecurityDescriptor>
Gets the set of mutually supported security protocols.
This set represents the intersection of security protocols supported by the BSS and the scanning interface. In this context, this set is never empty, as that would imply incompatibility.
Trait Implementations§
Source§impl Clone for Compatibility
impl Clone for Compatibility
Source§fn clone(&self) -> Compatibility
fn clone(&self) -> Compatibility
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for Compatibility
impl Debug for Compatibility
Source§impl From<Compatibility> for Compatibility
impl From<Compatibility> for Compatibility
Source§fn from(compatibility: Compatibility) -> Self
fn from(compatibility: Compatibility) -> Self
Source§impl From<Compatibility> for HashSet<SecurityDescriptor>
impl From<Compatibility> for HashSet<SecurityDescriptor>
Source§fn from(compatibility: Compatibility) -> Self
fn from(compatibility: Compatibility) -> Self
Source§impl PartialEq for Compatibility
impl PartialEq for Compatibility
Source§impl TryFrom<Compatibility> for Compatibility
impl TryFrom<Compatibility> for Compatibility
impl StructuralPartialEq for Compatibility
Auto Trait Implementations§
impl Freeze for Compatibility
impl RefUnwindSafe for Compatibility
impl Send for Compatibility
impl Sync for Compatibility
impl Unpin for Compatibility
impl UnwindSafe for Compatibility
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)