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§
sourcefn try_begin_transaction(
&mut self
) -> Option<StateDelta<&mut StateDelta<Self::S>>>
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.