Trait cnidarium::ArcStateDeltaExt

source ·
pub trait ArcStateDeltaExt: Sized {
    type S: StateRead;

    // Required method
    fn try_begin_transaction(
        &mut self
    ) -> Option<StateDelta<&mut StateDelta<Self::S>>>;
}
Expand description

Extension trait providing try_begin_transaction() on Arc<StateDelta<S>>.

Required Associated Types§

Required Methods§

source

fn try_begin_transaction( &mut self ) -> Option<StateDelta<&mut StateDelta<Self::S>>>

Attempts to begin a transaction on this Arc<State>, returning None if the Arc is shared.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<S: StateRead> ArcStateDeltaExt for Arc<StateDelta<S>>

§

type S = S

source§

fn try_begin_transaction(&mut self) -> Option<StateDelta<&mut StateDelta<S>>>

Implementors§