pub struct PartyStatusMismatch {
pub party_status: PartyStatus,
pub needed_status: PartyStatus,
}Expand description
Represents an error that occurs when there is a mismatch between the current status of the party and the status required for an operation.
This error is typically encountered when an operation requires the party to be in a specific state, but the party is in a different state.
Fields§
§party_status: PartyStatusThe current status of the party.
needed_status: PartyStatusThe status required for the operation to proceed.
Trait Implementations§
Source§impl Debug for PartyStatusMismatch
impl Debug for PartyStatusMismatch
Source§impl Display for PartyStatusMismatch
impl Display for PartyStatusMismatch
Source§impl Error for PartyStatusMismatch
impl Error for PartyStatusMismatch
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<PartyStatusMismatch> for FollowEventError
Converts a PartyStatusMismatch into a FollowEventError.
impl From<PartyStatusMismatch> for FollowEventError
Converts a PartyStatusMismatch into a FollowEventError.
This conversion allows PartyStatusMismatch errors to be treated as FollowEventError,
which may occur when there is a status mismatch while following an event.
Source§fn from(error: PartyStatusMismatch) -> Self
fn from(error: PartyStatusMismatch) -> Self
Source§impl<V: Value> From<PartyStatusMismatch> for UpdateStateError<V>
Converts a PartyStatusMismatch into an UpdateStateError<V>.
impl<V: Value> From<PartyStatusMismatch> for UpdateStateError<V>
Converts a PartyStatusMismatch into an UpdateStateError<V>.
This conversion is useful when a status mismatch occurs while updating the state, allowing the error to be handled within the context of state updates.