Platform

Trait Platform 

pub trait Platform {
    type Identity: NodeIdentity;
    type Aes: AesProvider;
    type Sha: Sha256Provider;
    type Radio: Radio;
    type Delay: DelayNs;
    type Clock: Clock;
    type Rng: CryptoRng;
    type CounterStore: CounterStore;
    type KeyValueStore: KeyValueStore;
}
Expand description

Bundle of platform-specific associated types used by the higher layers.

Required Associated Types§

type Identity: NodeIdentity

Local identity implementation.

type Aes: AesProvider

AES provider implementation.

type Sha: Sha256Provider

SHA/HMAC provider implementation.

type Radio: Radio

Radio implementation.

type Delay: DelayNs

Async delay implementation.

type Clock: Clock

Monotonic clock implementation.

type Rng: CryptoRng

Random-number generator implementation.

type CounterStore: CounterStore

Persistent frame-counter store implementation.

type KeyValueStore: KeyValueStore

General-purpose persistent key-value store implementation.

Implementors§

§

impl Platform for ModeledTestPlatform

§

type Identity = DummyIdentity

§

type Aes = DummyAes

§

type Sha = DummySha

§

type Radio = ModeledRadio

§

type Delay = DummyDelay

§

type Clock = DummyClock

§

type Rng = DummyRng

§

type CounterStore = DummyCounterStore

§

type KeyValueStore = DummyKeyValueStore

§

impl Platform for TestPlatform

§

type Identity = DummyIdentity

§

type Aes = DummyAes

§

type Sha = DummySha

§

type Radio = SimulatedRadio

§

type Delay = DummyDelay

§

type Clock = DummyClock

§

type Rng = DummyRng

§

type CounterStore = DummyCounterStore

§

type KeyValueStore = DummyKeyValueStore

Source§

impl<R, CS, KV> Platform for TokioPlatform<R, CS, KV>
where R: Radio, CS: CounterStore, KV: KeyValueStore,

Available on crate feature software-crypto only.
Source§

type Identity = SoftwareIdentity

Source§

type Aes = SoftwareAes

Source§

type Sha = SoftwareSha256

Source§

type Radio = R

Source§

type Delay = TokioDelay

Source§

type Clock = StdClock

Source§

type Rng = ThreadRng

Source§

type CounterStore = CS

Source§

type KeyValueStore = KV

Source§

impl<R, G, CS, KV> Platform for EmbassyPlatform<R, G, CS, KV>
where R: Radio, G: CryptoRng, CS: CounterStore, KV: KeyValueStore,

Available on crate feature software-crypto only.
Source§

type Identity = SoftwareIdentity

Source§

type Aes = SoftwareAes

Source§

type Sha = SoftwareSha256

Source§

type Radio = R

Source§

type Delay = EmbassyDelay

Source§

type Clock = EmbassyClock

Source§

type Rng = G

Source§

type CounterStore = CS

Source§

type KeyValueStore = KV