pub struct Projection { /* private fields */ }Expand description
Projected per-participant handlers from a choreography.
Implementations§
Source§impl Projection
impl Projection
Sourcepub fn handlers(&self, participant: &str) -> &[ProjectedHandler]
pub fn handlers(&self, participant: &str) -> &[ProjectedHandler]
Get handlers for a specific participant.
Sourcepub fn participants(&self) -> Vec<&str>
pub fn participants(&self) -> Vec<&str>
Get all participants in the projection.
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
Check if the projection is complete (all messages are balanced).
Trait Implementations§
Source§impl Clone for Projection
impl Clone for Projection
Source§fn clone(&self) -> Projection
fn clone(&self) -> Projection
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for Projection
impl RefUnwindSafe for Projection
impl Send for Projection
impl Sync for Projection
impl Unpin for Projection
impl UnsafeUnpin for Projection
impl UnwindSafe for Projection
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