pub enum PublishError {
InvalidTransition {
from: PublishState,
event: String,
},
}Expand description
Errors that can occur during publish state transitions.
Variants§
InvalidTransition
An event was received that is not valid for the current state.
Fields
§
from: PublishStateThe state the machine was in when the invalid event arrived.
Trait Implementations§
Source§impl Debug for PublishError
impl Debug for PublishError
Source§impl Display for PublishError
impl Display for PublishError
Source§impl Error for PublishError
impl Error for PublishError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<PublishError> for EndpointError
impl From<PublishError> for EndpointError
Source§fn from(source: PublishFlowError) -> Self
fn from(source: PublishFlowError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PublishError
impl PartialEq for PublishError
impl Eq for PublishError
impl StructuralPartialEq for PublishError
Auto Trait Implementations§
impl Freeze for PublishError
impl RefUnwindSafe for PublishError
impl Send for PublishError
impl Sync for PublishError
impl Unpin for PublishError
impl UnsafeUnpin for PublishError
impl UnwindSafe for PublishError
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