pub enum Frame {
Show 14 variants
Beacon(Beacon),
ProbeRequest(ProbeRequest),
ProbeResponse(ProbeResponse),
AssociationRequest(AssociationRequest),
AssociationResponse(AssociationResponse),
Rts(Rts),
Cts(Cts),
Ack(Ack),
BlockAckRequest(BlockAckRequest),
BlockAck(BlockAck),
Data(Data),
NullData(NullData),
QosData(QosData),
QosNull(QosNull),
}
Expand description
This represents all currently supported payloads for frame subtypes. Each variant is represented by its own struct.
The structs are organized by their frame type in submodules.
Variants
Beacon(Beacon)
ProbeRequest(ProbeRequest)
ProbeResponse(ProbeResponse)
AssociationRequest(AssociationRequest)
AssociationResponse(AssociationResponse)
Rts(Rts)
Cts(Cts)
Ack(Ack)
BlockAckRequest(BlockAckRequest)
BlockAck(BlockAck)
Data(Data)
NullData(NullData)
QosData(QosData)
QosNull(QosNull)
Trait Implementations
sourceimpl Addresses for Frame
impl Addresses for Frame
sourcefn src(&self) -> Option<&MacAddress>
fn src(&self) -> Option<&MacAddress>
Returns the sender of the Frame. This isn’t always send in every frame (e.g. CTS).
sourcefn dest(&self) -> &MacAddress
fn dest(&self) -> &MacAddress
Returns the destination of the Frame. This should always be present.
sourcefn bssid(&self) -> Option<&MacAddress>
fn bssid(&self) -> Option<&MacAddress>
This isn’t always send in every frame (e.g. RTS).
sourceimpl From<AssociationRequest> for Frame
impl From<AssociationRequest> for Frame
sourcefn from(v: AssociationRequest) -> Frame
fn from(v: AssociationRequest) -> Frame
Converts to this type from the input type.
sourceimpl From<AssociationResponse> for Frame
impl From<AssociationResponse> for Frame
sourcefn from(v: AssociationResponse) -> Frame
fn from(v: AssociationResponse) -> Frame
Converts to this type from the input type.
sourceimpl From<BlockAckRequest> for Frame
impl From<BlockAckRequest> for Frame
sourcefn from(v: BlockAckRequest) -> Frame
fn from(v: BlockAckRequest) -> Frame
Converts to this type from the input type.
sourceimpl From<ProbeRequest> for Frame
impl From<ProbeRequest> for Frame
sourcefn from(v: ProbeRequest) -> Frame
fn from(v: ProbeRequest) -> Frame
Converts to this type from the input type.
sourceimpl From<ProbeResponse> for Frame
impl From<ProbeResponse> for Frame
sourcefn from(v: ProbeResponse) -> Frame
fn from(v: ProbeResponse) -> Frame
Converts to this type from the input type.
sourceimpl TryInto<AssociationRequest> for Frame
impl TryInto<AssociationRequest> for Frame
sourcefn try_into(
self
) -> Result<AssociationRequest, <Self as TryInto<AssociationRequest>>::Error>
fn try_into(
self
) -> Result<AssociationRequest, <Self as TryInto<AssociationRequest>>::Error>
Performs the conversion.
sourceimpl TryInto<AssociationResponse> for Frame
impl TryInto<AssociationResponse> for Frame
sourcefn try_into(
self
) -> Result<AssociationResponse, <Self as TryInto<AssociationResponse>>::Error>
fn try_into(
self
) -> Result<AssociationResponse, <Self as TryInto<AssociationResponse>>::Error>
Performs the conversion.
sourceimpl TryInto<BlockAckRequest> for Frame
impl TryInto<BlockAckRequest> for Frame
sourcefn try_into(
self
) -> Result<BlockAckRequest, <Self as TryInto<BlockAckRequest>>::Error>
fn try_into(
self
) -> Result<BlockAckRequest, <Self as TryInto<BlockAckRequest>>::Error>
Performs the conversion.
sourceimpl TryInto<ProbeRequest> for Frame
impl TryInto<ProbeRequest> for Frame
sourcefn try_into(
self
) -> Result<ProbeRequest, <Self as TryInto<ProbeRequest>>::Error>
fn try_into(
self
) -> Result<ProbeRequest, <Self as TryInto<ProbeRequest>>::Error>
Performs the conversion.
sourceimpl TryInto<ProbeResponse> for Frame
impl TryInto<ProbeResponse> for Frame
sourcefn try_into(
self
) -> Result<ProbeResponse, <Self as TryInto<ProbeResponse>>::Error>
fn try_into(
self
) -> Result<ProbeResponse, <Self as TryInto<ProbeResponse>>::Error>
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnwindSafe for Frame
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more