Enum tinychain::chain::Subject[][src]

pub enum Subject {
    Value(File<Value>),
}

The state whose transactional integrity is protected by a Chain.

Variants

Value(File<Value>)

Implementations

impl Subject[src]

pub async fn create(schema: &Schema, dir: &Dir, txn_id: TxnId) -> TCResult<Self>[src]

Create a new Subject with the given Schema.

pub async fn at(&self, txn_id: &TxnId) -> TCResult<State>[src]

Return the state of this subject as of the given TxnId.

pub async fn put(
    &self,
    txn_id: TxnId,
    path: TCPathBuf,
    key: Value,
    value: State
) -> TCResult<()>
[src]

Set the state of this Subject to value at the given TxnId.

Trait Implementations

impl Clone for Subject[src]

impl FromStream for Subject[src]

type Context = Txn

The decoding context of this type, useful in situations where the stream to be decoded may be too large to hold in main memory. Read more

impl Transact for Subject[src]

Auto Trait Implementations

impl RefUnwindSafe for Subject

impl Send for Subject

impl Sync for Subject

impl Unpin for Subject

impl UnwindSafe for Subject

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<F, T> CastFrom<F> for T where
    T: From<F>, 
[src]

impl<T, F> CastInto<F> for T where
    F: CastFrom<T>, 
[src]

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

impl<T> Instrument for T[src]

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

impl<F> Match for F[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

impl<F, T> TryCastFrom<F> for T where
    T: CastFrom<F>, 
[src]

impl<F, T> TryCastInto<T> for F where
    T: TryCastFrom<F>, 
[src]

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>,