Skip to main content

ReadKey

Trait ReadKey 

Source
pub trait ReadKey: TargetKey { }
Expand description

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

ⓘ
use durable_ioring::{Key, ReadKey, WriteOnly};

fn needs_read<K: ReadKey>(_: K) {}
needs_read(Key::<WriteOnly>::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 ReadKey for IoTargetKey

Source§

impl<A> ReadKey for Key<A>
where A: CanRead,