#[non_exhaustive]pub enum EngineError {
UnknownAction(String),
WrongDirection(String),
SendNotSupported(String),
WrongMessageKind(String),
NoSuchRequest(MessageId),
CallResultErrorNotSupported,
ShuttingDown,
}Expand description
Why a command was refused.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
UnknownAction(String)
This version does not define the action.
WrongDirection(String)
This peer is not allowed to originate the action.
SendNotSupported(String)
A SEND was requested on a version that has no SEND (before 2.1).
WrongMessageKind(String)
The action is a SEND but was submitted as a call, or the other way round.
NoSuchRequest(MessageId)
No outstanding request has that id.
CallResultErrorNotSupported
CALLRESULTERROR needs OCPP 2.1.
ShuttingDown
The engine is draining.
Trait Implementations§
Source§impl Clone for EngineError
impl Clone for EngineError
Source§impl Debug for EngineError
impl Debug for EngineError
Source§impl Display for EngineError
impl Display for EngineError
impl Eq for EngineError
Source§impl Error for EngineError
Available on crate feature std only.
impl Error for EngineError
Available on crate feature
std only.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 PartialEq for EngineError
impl PartialEq for EngineError
impl StructuralPartialEq for EngineError
Auto Trait Implementations§
impl Forget for EngineError
impl Freeze for EngineError
impl RefUnwindSafe for EngineError
impl Send for EngineError
impl Sync for EngineError
impl Unpin for EngineError
impl UnsafeUnpin for EngineError
impl UnwindSafe for EngineError
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