pub struct SagaTopology<S: Saga> { /* private fields */ }Expand description
Materializable description of a saga.
Trait Implementations§
Source§impl<S: Saga> Topology for SagaTopology<S>
impl<S: Saga> Topology for SagaTopology<S>
Source§type Handles = SagaHandles
type Handles = SagaHandles
The handle bundle returned after materialization.
Source§fn materialize<'life0, 'async_trait>(
self,
_system: &'life0 ActorSystem,
) -> Pin<Box<dyn Future<Output = Result<SagaHandles, PatternError<()>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn materialize<'life0, 'async_trait>(
self,
_system: &'life0 ActorSystem,
) -> Pin<Box<dyn Future<Output = Result<SagaHandles, PatternError<()>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Spawn the pattern’s actors and start its streams. Idempotent
w.r.t. the returned handles, but each call to
materialize
spawns a fresh subtree — invoke it once per pattern instance.Auto Trait Implementations§
impl<S> Freeze for SagaTopology<S>where
S: Freeze,
impl<S> !RefUnwindSafe for SagaTopology<S>
impl<S> Send for SagaTopology<S>
impl<S> Sync for SagaTopology<S>where
S: Sync,
impl<S> Unpin for SagaTopology<S>where
S: Unpin,
impl<S> UnsafeUnpin for SagaTopology<S>where
S: UnsafeUnpin,
impl<S> !UnwindSafe for SagaTopology<S>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more