pub enum Protocol {
Open,
Wep,
Wpa1,
Wpa2Personal,
Wpa2Enterprise,
Wpa3Personal,
Wpa3Enterprise,
// some variants omitted
}
Expand description
WLAN security protocols.
WPA protocols are additionally enumerated by their authentication suite (i.e., Personal vs. Enterprise).
Variants§
Open
Open network security.
This indicates that no security protocol or suite is used by a WLAN; it is not to be confused with “open authentication”.
Wep
Wpa1
Wpa2Personal
Wpa2Enterprise
Wpa3Personal
Wpa3Enterprise
Implementations§
Trait Implementations§
Source§impl<D> Decode<Protocol, D> for Protocolwhere
D: ResourceDialect,
impl<D> Decode<Protocol, D> for Protocolwhere
D: ResourceDialect,
Source§impl Ord for Protocol
impl Ord for Protocol
Source§impl PartialOrd for Protocol
impl PartialOrd for Protocol
Source§impl TypeMarker for Protocol
impl TypeMarker for Protocol
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align
.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read moreSource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.Source§impl ValueTypeMarker for Protocol
impl ValueTypeMarker for Protocol
Source§type Borrowed<'a> = Protocol
type Borrowed<'a> = Protocol
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreSource§fn borrow(
value: &<Protocol as TypeMarker>::Owned,
) -> <Protocol as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<Protocol as TypeMarker>::Owned, ) -> <Protocol as ValueTypeMarker>::Borrowed<'_>
Cheaply converts from
&Self::Owned
to Self::Borrowed
.impl Copy for Protocol
impl Eq for Protocol
impl StructuralPartialEq for Protocol
Auto Trait Implementations§
impl Freeze for Protocol
impl RefUnwindSafe for Protocol
impl Send for Protocol
impl Sync for Protocol
impl Unpin for Protocol
impl UnwindSafe for Protocol
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