[][src]Struct dgraph_tonic::TxnVariant

pub struct TxnVariant<S: IState, C: ILazyClient> { /* fields omitted */ }

Type state for Transaction variants

Implementations

impl<C: ILazyClient> TxnVariant<ReadOnly<C>, C>[src]

pub fn best_effort(self) -> TxnBestEffortType<C>[src]

Create best effort transaction from read only state

impl<C: ILazyClient> TxnVariant<Base<C>, C>[src]

pub fn new(stub: Stub<C>) -> TxnType<C>[src]

Create new default transaction which can do query operations.

impl<C: ILazyClient> TxnVariant<Base<C>, C>[src]

pub fn mutated(self) -> TxnMutatedType<C>[src]

Create new transaction for mutation operations.

impl<C: ILazyClient> TxnVariant<Base<C>, C>[src]

pub fn read_only(self) -> TxnReadOnlyType<C>[src]

Create new read only transaction from default transaction state

impl<S: IState, C: ILazyClient> TxnVariant<S, C>[src]

pub fn clone_and_reset(&mut self) -> Self[src]

Return new transaction of same variant with default state

Methods from Deref<Target = Box<TxnState<C>>>

Trait Implementations

impl<S: Clone + IState, C: Clone + ILazyClient> Clone for TxnVariant<S, C>[src]

impl<S: Debug + IState, C: Debug + ILazyClient> Debug for TxnVariant<S, C>[src]

impl<S: IState, C: ILazyClient> Deref for TxnVariant<S, C>[src]

type Target = Box<TxnState<C>>

The resulting type after dereferencing.

impl<S: IState, C: ILazyClient> DerefMut for TxnVariant<S, C>[src]

impl<S: IState, C: ILazyClient> Query for TxnVariant<S, C>[src]

Auto Trait Implementations

impl<S, C> RefUnwindSafe for TxnVariant<S, C> where
    C: RefUnwindSafe,
    S: RefUnwindSafe

impl<S, C> Send for TxnVariant<S, C>

impl<S, C> Sync for TxnVariant<S, C>

impl<S, C> Unpin for TxnVariant<S, C> where
    S: Unpin

impl<S, C> UnwindSafe for TxnVariant<S, C> where
    C: UnwindSafe,
    S: UnwindSafe

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> Instrument for T[src]

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

impl<T> IntoRequest<T> for T[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<T> WithSubscriber for T[src]