EmbassyPlatform

Struct EmbassyPlatform 

Source
pub struct EmbassyPlatform<R, G, CS, KV>(/* private fields */);
Expand description

Convenience crate::Platform implementation for Embassy-style targets.

Trait Implementations§

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

Local identity implementation.
Source§

type Aes = SoftwareAes

AES provider implementation.
Source§

type Sha = SoftwareSha256

SHA/HMAC provider implementation.
Source§

type Radio = R

Radio implementation.
Source§

type Delay = EmbassyDelay

Async delay implementation.
Source§

type Clock = EmbassyClock

Monotonic clock implementation.
Source§

type Rng = G

Random-number generator implementation.
Source§

type CounterStore = CS

Persistent frame-counter store implementation.
Source§

type KeyValueStore = KV

General-purpose persistent key-value store implementation.

Auto Trait Implementations§

§

impl<R, G, CS, KV> Freeze for EmbassyPlatform<R, G, CS, KV>

§

impl<R, G, CS, KV> RefUnwindSafe for EmbassyPlatform<R, G, CS, KV>

§

impl<R, G, CS, KV> Send for EmbassyPlatform<R, G, CS, KV>
where R: Send, G: Send, CS: Send, KV: Send,

§

impl<R, G, CS, KV> Sync for EmbassyPlatform<R, G, CS, KV>
where R: Sync, G: Sync, CS: Sync, KV: Sync,

§

impl<R, G, CS, KV> Unpin for EmbassyPlatform<R, G, CS, KV>
where R: Unpin, G: Unpin, CS: Unpin, KV: Unpin,

§

impl<R, G, CS, KV> UnwindSafe for EmbassyPlatform<R, G, CS, KV>
where R: UnwindSafe, G: UnwindSafe, CS: UnwindSafe, KV: UnwindSafe,

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> AutoreleaseSafe for T
where T: ?Sized,