[][src]Struct orga::store::Shared

pub struct Shared<T>(_);

A shared reference to a store, allowing the store to be cloned and read from or written to by multiple consumers.

Shared has the Clone trait - it is safe to clone references to the store since get, put, and delete all operate atomically so there will never be more than one reference borrowing the underlying store at a time.

Implementations

impl<T> Shared<T>[src]

pub fn new(inner: T) -> Self[src]

Constructs a Shared by wrapping the given store.

Trait Implementations

impl<T> Clone for Shared<T>[src]

impl<R: Read> Read for Shared<R>[src]

impl<W: Write> Write for Shared<W>[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for Shared<T>

impl<T> !Send for Shared<T>

impl<T> !Sync for Shared<T>

impl<T> Terminated for Shared<T> where
    T: Terminated

impl<T> Unpin for Shared<T>

impl<T> !UnwindSafe for Shared<T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<S, T> Read for T where
    S: Read,
    T: Deref<Target = S>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<S> Store for S where
    S: Read + Write
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<S, T> Write for T where
    S: Write,
    T: DerefMut<Target = S>, 
[src]