[][src]Struct wireless_regdb::RegDB

pub struct RegDB {
    pub wmm_rules: HashMap<String, WmmRule>,
    pub countries: HashMap<String, Country>,
}

The regulatory database with wmmrules and countries

Fields

wmm_rules: HashMap<String, WmmRule>

Regulatory rules for regions.

ETSI for example

countries: HashMap<String, Country>

Contries in the database. The key usese the 2 digit alpha representation

Implementations

impl RegDB[src]

pub fn from_lexer(lexer: Vec<TokType>) -> Result<Self>[src]

Create a regulatory database from a TokenStream(Vec<lexer::TokType>)

Arguments

  • lexer - Vector of tokens representing the database txt format

Trait Implementations

impl Debug for RegDB[src]

impl Default for RegDB[src]

impl Eq for RegDB[src]

impl PartialEq<RegDB> for RegDB[src]

impl StructuralEq for RegDB[src]

impl StructuralPartialEq for RegDB[src]

Auto Trait Implementations

impl RefUnwindSafe for RegDB

impl Send for RegDB

impl Sync for RegDB

impl Unpin for RegDB

impl UnwindSafe for RegDB

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.