[][src]Function lorawan::parser::parse_with_factory

pub fn parse_with_factory<'a, T, F>(
    data: T,
    factory: F
) -> Result<PhyPayload<T, F>, &'a str> where
    T: AsRef<[u8]> + AsMut<[u8]>,
    F: CryptoFactory

Parses a payload as LoRaWAN physical payload.

Check out parse if you do not need custom crypto factory.

Argument

  • bytes - the data from which the PhyPayload is to be built.
  • factory - the factory that shall be used to create object for crypto functions.