pub enum LoadedDelegation {
Pending(Delegation<Pending>),
Accepted(Delegation<DelegationAccepted>),
InProgress(Delegation<InProgress>),
Completed(Delegation<DelegationCompleted>),
Rejected(Delegation<DelegationRejected>),
Failed(Delegation<DelegationFailed>),
}Expand description
Enum representing all possible runtime states of a delegation. Use this when you need to handle delegations loaded from the database.
Variants§
Pending(Delegation<Pending>)
Accepted(Delegation<DelegationAccepted>)
InProgress(Delegation<InProgress>)
Completed(Delegation<DelegationCompleted>)
Rejected(Delegation<DelegationRejected>)
Failed(Delegation<DelegationFailed>)
Trait Implementations§
Source§impl Clone for LoadedDelegation
impl Clone for LoadedDelegation
Source§fn clone(&self) -> LoadedDelegation
fn clone(&self) -> LoadedDelegation
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 LoadedDelegation
impl RefUnwindSafe for LoadedDelegation
impl Send for LoadedDelegation
impl Sync for LoadedDelegation
impl Unpin for LoadedDelegation
impl UnwindSafe for LoadedDelegation
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