use fidl_fuchsia_wlan_ieee80211 as fidl_ieee80211;
use zerocopy::{FromBytes, Immutable, IntoBytes, KnownLayout};
#[repr(C)]
#[derive(
IntoBytes, KnownLayout, FromBytes, Immutable, PartialEq, Eq, Clone, Copy, Debug, Default,
)]
pub struct ReasonCode(pub u16);
impl From<fidl_ieee80211::ReasonCode> for ReasonCode {
fn from(fidl_reason_code: fidl_ieee80211::ReasonCode) -> ReasonCode {
ReasonCode(fidl_reason_code.into_primitive())
}
}
impl From<ReasonCode> for Option<fidl_ieee80211::ReasonCode> {
fn from(reason_code: ReasonCode) -> Option<fidl_ieee80211::ReasonCode> {
fidl_ieee80211::ReasonCode::from_primitive(reason_code.0)
}
}