pub trait AutoReadApi {
    type Target;

    // Required method
    fn get(&self) -> &Self::Target;
}
Expand description

Marker trait used to tell the compiler to automatically implement ReadApi for references to instances of the type. See the Examples section of the ReadWriteApi documentation.

Required Associated Types§

source

type Target

Type to be used as a read guard.

Required Methods§

source

fn get(&self) -> &Self::Target

Returns read guard for Self.

Implementors§