pub enum Frame {
Show 30 variants
Beacon(Beacon),
ProbeRequest(ProbeRequest),
ProbeResponse(ProbeResponse),
AssociationRequest(AssociationRequest),
AssociationResponse(AssociationResponse),
ReassociationRequest(ReassociationRequest),
ReassociationResponse(ReassociationResponse),
Action(Action),
Authentication(Authentication),
Deauthentication(Deauthentication),
Rts(Rts),
Cts(Cts),
Ack(Ack),
BlockAckRequest(BlockAckRequest),
BlockAck(BlockAck),
Data(Data),
QosData(QosData),
DataCfAck(DataCfAck),
DataCfPoll(DataCfPoll),
DataCfAckCfPoll(DataCfAckCfPoll),
CfAck(CfAck),
CfPoll(CfPoll),
CfAckCfPoll(CfAckCfPoll),
QosDataCfAck(QosDataCfAck),
QosDataCfPoll(QosDataCfPoll),
QosDataCfAckCfPoll(QosDataCfAckCfPoll),
QosCfPoll(QosCfPoll),
QosCfAckCfPoll(QosCfAckCfPoll),
QosNull(QosNull),
NullData(NullData),
}
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)
ReassociationRequest(ReassociationRequest)
ReassociationResponse(ReassociationResponse)
Action(Action)
Authentication(Authentication)
Deauthentication(Deauthentication)
Rts(Rts)
Cts(Cts)
Ack(Ack)
BlockAckRequest(BlockAckRequest)
BlockAck(BlockAck)
Data(Data)
QosData(QosData)
DataCfAck(DataCfAck)
DataCfPoll(DataCfPoll)
DataCfAckCfPoll(DataCfAckCfPoll)
CfAck(CfAck)
CfPoll(CfPoll)
CfAckCfPoll(CfAckCfPoll)
QosDataCfAck(QosDataCfAck)
QosDataCfPoll(QosDataCfPoll)
QosDataCfAckCfPoll(QosDataCfAckCfPoll)
QosCfPoll(QosCfPoll)
QosCfAckCfPoll(QosCfAckCfPoll)
QosNull(QosNull)
NullData(NullData)
Trait Implementations§
Source§impl Addresses for Frame
impl Addresses for Frame
Source§fn 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).
Source§fn dest(&self) -> &MacAddress
fn dest(&self) -> &MacAddress
Returns the destination of the Frame. This should always be present.
Source§fn bssid(&self) -> Option<&MacAddress>
fn bssid(&self) -> Option<&MacAddress>
This isn’t always send in every frame (e.g. RTS).
Source§impl From<AssociationRequest> for Frame
impl From<AssociationRequest> for Frame
Source§fn from(v: AssociationRequest) -> Frame
fn from(v: AssociationRequest) -> Frame
Converts to this type from the input type.
Source§impl From<AssociationResponse> for Frame
impl From<AssociationResponse> for Frame
Source§fn from(v: AssociationResponse) -> Frame
fn from(v: AssociationResponse) -> Frame
Converts to this type from the input type.
Source§impl From<Authentication> for Frame
impl From<Authentication> for Frame
Source§fn from(v: Authentication) -> Frame
fn from(v: Authentication) -> Frame
Converts to this type from the input type.
Source§impl From<BlockAckRequest> for Frame
impl From<BlockAckRequest> for Frame
Source§fn from(v: BlockAckRequest) -> Frame
fn from(v: BlockAckRequest) -> Frame
Converts to this type from the input type.
Source§impl From<CfAckCfPoll> for Frame
impl From<CfAckCfPoll> for Frame
Source§fn from(v: CfAckCfPoll) -> Frame
fn from(v: CfAckCfPoll) -> Frame
Converts to this type from the input type.
Source§impl From<DataCfAckCfPoll> for Frame
impl From<DataCfAckCfPoll> for Frame
Source§fn from(v: DataCfAckCfPoll) -> Frame
fn from(v: DataCfAckCfPoll) -> Frame
Converts to this type from the input type.
Source§impl From<DataCfPoll> for Frame
impl From<DataCfPoll> for Frame
Source§fn from(v: DataCfPoll) -> Frame
fn from(v: DataCfPoll) -> Frame
Converts to this type from the input type.
Source§impl From<Deauthentication> for Frame
impl From<Deauthentication> for Frame
Source§fn from(v: Deauthentication) -> Frame
fn from(v: Deauthentication) -> Frame
Converts to this type from the input type.
Source§impl From<ProbeRequest> for Frame
impl From<ProbeRequest> for Frame
Source§fn from(v: ProbeRequest) -> Frame
fn from(v: ProbeRequest) -> Frame
Converts to this type from the input type.
Source§impl From<ProbeResponse> for Frame
impl From<ProbeResponse> for Frame
Source§fn from(v: ProbeResponse) -> Frame
fn from(v: ProbeResponse) -> Frame
Converts to this type from the input type.
Source§impl From<QosCfAckCfPoll> for Frame
impl From<QosCfAckCfPoll> for Frame
Source§fn from(v: QosCfAckCfPoll) -> Frame
fn from(v: QosCfAckCfPoll) -> Frame
Converts to this type from the input type.
Source§impl From<QosDataCfAck> for Frame
impl From<QosDataCfAck> for Frame
Source§fn from(v: QosDataCfAck) -> Frame
fn from(v: QosDataCfAck) -> Frame
Converts to this type from the input type.
Source§impl From<QosDataCfAckCfPoll> for Frame
impl From<QosDataCfAckCfPoll> for Frame
Source§fn from(v: QosDataCfAckCfPoll) -> Frame
fn from(v: QosDataCfAckCfPoll) -> Frame
Converts to this type from the input type.
Source§impl From<QosDataCfPoll> for Frame
impl From<QosDataCfPoll> for Frame
Source§fn from(v: QosDataCfPoll) -> Frame
fn from(v: QosDataCfPoll) -> Frame
Converts to this type from the input type.
Source§impl From<ReassociationRequest> for Frame
impl From<ReassociationRequest> for Frame
Source§fn from(v: ReassociationRequest) -> Frame
fn from(v: ReassociationRequest) -> Frame
Converts to this type from the input type.
Source§impl From<ReassociationResponse> for Frame
impl From<ReassociationResponse> for Frame
Source§fn from(v: ReassociationResponse) -> Frame
fn from(v: ReassociationResponse) -> Frame
Converts to this type from the input type.
Source§impl TryInto<AssociationRequest> for Frame
impl TryInto<AssociationRequest> for Frame
Source§impl TryInto<AssociationResponse> for Frame
impl TryInto<AssociationResponse> for Frame
Source§impl TryInto<Authentication> for Frame
impl TryInto<Authentication> for Frame
Source§impl TryInto<BlockAckRequest> for Frame
impl TryInto<BlockAckRequest> for Frame
Source§impl TryInto<CfAckCfPoll> for Frame
impl TryInto<CfAckCfPoll> for Frame
Source§impl TryInto<DataCfAckCfPoll> for Frame
impl TryInto<DataCfAckCfPoll> for Frame
Source§impl TryInto<DataCfPoll> for Frame
impl TryInto<DataCfPoll> for Frame
Source§impl TryInto<Deauthentication> for Frame
impl TryInto<Deauthentication> for Frame
Source§impl TryInto<ProbeRequest> for Frame
impl TryInto<ProbeRequest> for Frame
Source§impl TryInto<ProbeResponse> for Frame
impl TryInto<ProbeResponse> for Frame
Source§impl TryInto<QosCfAckCfPoll> for Frame
impl TryInto<QosCfAckCfPoll> for Frame
Source§impl TryInto<QosDataCfAck> for Frame
impl TryInto<QosDataCfAck> for Frame
Source§impl TryInto<QosDataCfAckCfPoll> for Frame
impl TryInto<QosDataCfAckCfPoll> for Frame
Source§impl TryInto<QosDataCfPoll> for Frame
impl TryInto<QosDataCfPoll> for Frame
Source§impl TryInto<ReassociationRequest> for Frame
impl TryInto<ReassociationRequest> for Frame
Source§impl TryInto<ReassociationResponse> for Frame
impl TryInto<ReassociationResponse> for Frame
Auto Trait Implementations§
impl Freeze for Frame
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnwindSafe for Frame
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