Skip to main content

BindingsSyncTypes

Trait BindingsSyncTypes 

Source
pub trait BindingsSyncTypes {
    type Mutex: RawMutex + Send + Sync + 'static;
    type RwLock: RawRwLock + Send + Sync + 'static;
    type Once: Once + Send + Sync + 'static;
}
Expand description

Synchronization primitive types provided by bindings.

Required Associated Types§

Source

type Mutex: RawMutex + Send + Sync + 'static

The raw mutex implementation used by netstack3_sync::Mutex.

Source

type RwLock: RawRwLock + Send + Sync + 'static

The raw reader-writer lock implementation used by netstack3_sync::RwLock.

Source

type Once: Once + Send + Sync + 'static

The one-time initialization primitive used by [netstack3_sync::OnceLock].

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl BindingsSyncTypes for netstack3_core::testutil::FakeBindingsCtx

Source§

type Mutex = RawSyncMutex

Source§

type RwLock = RawSyncRwLock

Source§

type Once = Once

Source§

impl<TimerId, Event, State, FrameMeta> BindingsSyncTypes for netstack3_base::testutil::fake_bindings::FakeBindingsCtx<TimerId, Event, State, FrameMeta>
where Event: Debug,

Source§

type Mutex = RawSyncMutex

Source§

type RwLock = RawSyncRwLock

Source§

type Once = Once