Skip to main content

WriteKey

Trait WriteKey 

Source
pub trait WriteKey: TargetKey { }
Expand description

A key a write may be pushed through: an IoTargetKey, or a Key<A> where A can write.

ⓘ
use durable_ioring::{Key, ReadOnly, WriteKey};

fn needs_write<K: WriteKey>(_: K) {}
needs_write(Key::<ReadOnly>::new(durable_ioring::IoTargetKey(1)));

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl WriteKey for IoTargetKey

Source§

impl<A> WriteKey for Key<A>
where A: CanWrite,