[−][src]Struct dgraph_tonic::TxnVariant
Type state for Transaction variants
Methods
impl<C: ILazyClient> TxnVariant<ReadOnly<C>, C>
[src]
pub fn best_effort(self) -> BestEffortTxn<C>
[src]
Create best effort transaction from read only state
impl<C: ILazyClient> TxnVariant<Base<C>, C>
[src]
pub fn new(stub: Stub<C>) -> Txn<C>
[src]
Create new default transaction which can do query operations.
impl<C: ILazyClient> TxnVariant<Base<C>, C>
[src]
pub fn mutated(self) -> MutatedTxn<C>
[src]
Create new transaction for mutation operations.
impl<C: ILazyClient> TxnVariant<Base<C>, C>
[src]
pub fn read_only(self) -> ReadOnlyTxn<C>
[src]
Create new read only transaction from default transaction state
Methods from Deref<Target = Box<TxnState<C>>>
Trait Implementations
impl<S: Clone + IState, C: Clone + ILazyClient> Clone for TxnVariant<S, C>
[src]
fn clone(&self) -> TxnVariant<S, C>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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.
fn deref(&self) -> &Self::Target
[src]
impl<S: IState, C: ILazyClient> DerefMut for TxnVariant<S, C>
[src]
impl<S: IState, C: ILazyClient> Query for TxnVariant<S, C>
[src]
fn query<'life0, 'async_trait, Q>(
&'life0 mut self,
query: Q
) -> Pin<Box<dyn Future<Output = Result<Response, DgraphError>> + Send + 'async_trait>> where
Q: Into<String> + Send + Sync,
Q: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
query: Q
) -> Pin<Box<dyn Future<Output = Result<Response, DgraphError>> + Send + 'async_trait>> where
Q: Into<String> + Send + Sync,
Q: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
fn query_with_vars<'life0, 'async_trait, Q, K, V>(
&'life0 mut self,
query: Q,
vars: HashMap<K, V>
) -> Pin<Box<dyn Future<Output = Result<Response, DgraphError>> + Send + 'async_trait>> where
Q: Into<String> + Send + Sync,
K: Into<String> + Send + Sync + Eq + Hash,
V: Into<String> + Send + Sync,
Q: 'async_trait,
K: 'async_trait,
V: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
query: Q,
vars: HashMap<K, V>
) -> Pin<Box<dyn Future<Output = Result<Response, DgraphError>> + Send + 'async_trait>> where
Q: Into<String> + Send + Sync,
K: Into<String> + Send + Sync + Eq + Hash,
V: Into<String> + Send + Sync,
Q: 'async_trait,
K: 'async_trait,
V: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
Auto Trait Implementations
impl<S, C> RefUnwindSafe for TxnVariant<S, C> where
C: RefUnwindSafe,
S: RefUnwindSafe,
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,
S: Unpin,
impl<S, C> UnwindSafe for TxnVariant<S, C> where
C: UnwindSafe,
S: UnwindSafe,
C: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoRequest<T> for T
[src]
fn into_request(self) -> Request<T>
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,