Trait cycler::ReadAccess[][src]

pub trait ReadAccess {
    type Read;
    fn read_data(&self) -> &Self::Read;
}

This trait should be implemented for any type that can be read from by a cycler. This specifically allows for the separation of read and write data from the cycler readers and writers. If this functionality is not needed then ReadAccess::Read can be set to Self for no runtime cost.

Associated Types

type Read[src]

The type of read data that can be accessed. Will default to Self when https://github.com/rust-lang/rust/issues/29661 is resolved.

Loading content...

Required methods

fn read_data(&self) -> &Self::Read[src]

Gets shared access to the read data contained

Loading content...

Implementors

impl<T> ReadAccess for AtomicCyclerReader<T> where
    T: ReadAccess
[src]

type Read = T::Read

impl<T> ReadAccess for AtomicCyclerWriter<T> where
    T: ReadAccess
[src]

type Read = T::Read

fn read_data(&self) -> &Self::Read[src]

Gets a shared reference to the read data of the current block

impl<T> ReadAccess for RwLockCyclerReader<T> where
    T: ReadAccess
[src]

type Read = T::Read

impl<T> ReadAccess for RwLockCyclerWriter<T> where
    T: ReadAccess
[src]

type Read = T::Read

fn read_data(&self) -> &Self::Read[src]

Gets a shared reference to the read data of the current block

Loading content...