pub enum StateTransition {
Pause,
Resume,
AwaitApproval {
request_id: String,
},
ResolveApproval {
approval_id: String,
},
Abort {
reason: String,
},
}Expand description
State transition operations.
These map to the state machine transitions in Channel.
Variants§
Pause
Pause a running channel.
Resume
Resume a paused channel.
AwaitApproval
Enter approval-waiting state.
ResolveApproval
Resolve an approval (approved).
Abort
Abort with reason.
Trait Implementations§
Source§impl Clone for StateTransition
impl Clone for StateTransition
Source§fn clone(&self) -> StateTransition
fn clone(&self) -> StateTransition
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 StateTransition
impl RefUnwindSafe for StateTransition
impl Send for StateTransition
impl Sync for StateTransition
impl Unpin for StateTransition
impl UnsafeUnpin for StateTransition
impl UnwindSafe for StateTransition
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